Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

stream_output_file Class Reference

file interface of stream More...

#include <miscxml.h>

Inheritance diagram for stream_output_file:

byte_consumer

List of all members.

Public Member Functions

 stream_output_file (mem_pool_t &small_pool, mem_pool_t &big_pool, size_t xml_size)
 constructor
bool open (const char *location)
 opens file
void close ()
 closes file
virtual ~stream_output_file ()
 destructor

Protected Member Functions

virtual bool data_persist (const ub1_t *buf, size_t len)
 saves bytes to file

Private Attributes

FILE * _desc
 file descriptor


Detailed Description

file interface of stream

Definition at line 207 of file miscxml.h.


Constructor & Destructor Documentation

stream_output_file::stream_output_file ( mem_pool_t small_pool,
mem_pool_t big_pool,
size_t  xml_size 
)

constructor

Parameters:
small_pool  small memory pool
big_pool  big memory pool
xml_size  xml size - just a tip

Definition at line 774 of file miscxml.cpp.

stream_output_file::~stream_output_file (  )  [virtual]

destructor

Definition at line 828 of file miscxml.cpp.

References close().


Member Function Documentation

bool stream_output_file::open ( const char *  location  ) 

opens file

Parameters:
location  file name

Definition at line 781 of file miscxml.cpp.

References _desc.

Referenced by xml_designer_impl::save().

void stream_output_file::close (  ) 

closes file

Definition at line 793 of file miscxml.cpp.

References _desc.

Referenced by xml_designer_impl::save(), and ~stream_output_file().

bool stream_output_file::data_persist ( const ub1_t buf,
size_t  len 
) [protected, virtual]

saves bytes to file

Parameters:
buf  buffer to save
len  buffer length

Implements byte_consumer.

Definition at line 805 of file miscxml.cpp.

References _desc.


Member Data Documentation

FILE* stream_output_file::_desc [private]

file descriptor

Definition at line 234 of file miscxml.h.

Referenced by close(), data_persist(), and open().


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.