Scopira 20080306

scopira::tool::propiflow Class Reference

#include <propflow.h>

Inheritance diagram for scopira::tool::propiflow:
scopira::tool::iobjflow_i scopira::tool::itflow_i scopira::tool::iflow_i scopira::tool::flow_i scopira::tool::object

List of all members.

Public Member Functions

 propiflow (bool doref, iflow_i *in)
virtual ~propiflow (void)
 destructor
virtual bool failed (void) const
 are we in a failed state?
virtual size_t read (byte_t *_buf, size_t _maxsize)
 read raw block data, returns num read in
virtual bool read_bool (bool &)
virtual bool read_char (char &)
virtual bool read_short (short &)
virtual bool read_int (int &)
virtual bool read_size_t (size_t &)
virtual bool read_int64_t (int64_t &)
virtual bool read_long (long &)
virtual bool read_float (float &)
virtual bool read_double (double &)
virtual bool read_string (std::string &)
virtual bool read_object (object *&out)
 object reader
bool read_keyword (std::string &ret, bool &keyword)
void open (iflow_i *in)
 opens a new link
void close (void)
 close the current link
bool read_property (property *rp, int level=0)

Protected Member Functions

byte_t non_whitespace (void)
 advance stream to next non whitespace and return it

Static Protected Member Functions

static bool is_whitespace (byte_t b)
 is it whitespace?

Protected Attributes

count2_ptr< iflow_idm_in
 input flow

Detailed Description

data type to ascii-like converter, with functions for property-like config files

Author:
Aleksander Demko

Constructor & Destructor Documentation

scopira::tool::propiflow::propiflow ( bool  doref,
iflow_i in 
)

constrcutor

Parameters:
dorefshould this class reference count in
inthe input stream to use. this object will "own" it
Author:
Aleksander Demko

Member Function Documentation

virtual bool scopira::tool::propiflow::read_bool ( bool &  ) [virtual]

Reads an bool, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_char ( char &  ) [virtual]

Reads an char, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_double ( double &  ) [virtual]

Reads a double, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_float ( float &  ) [virtual]

Reads a float, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_int ( int &  ) [virtual]

Reads an int, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_int64_t ( int64_t &  ) [virtual]

Reads an int64_t, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

bool scopira::tool::propiflow::read_keyword ( std::string &  ret,
bool &  keyword 
)

reads any string, both keyword-style and quoted

Parameters:
retthe read in string
keywordtrue, if readin in keyword, false if quoted
Returns:
success reading keyword
Author:
Aleksander Demko
virtual bool scopira::tool::propiflow::read_long ( long &  ) [virtual]

Reads an long, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

bool scopira::tool::propiflow::read_property ( property rp,
int  level = 0 
)

reads a whole property tree of data and save it to the given property

virtual bool scopira::tool::propiflow::read_short ( short &  ) [virtual]

Reads an short, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_size_t ( size_t &  ) [virtual]

Reads a size_t, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.

virtual bool scopira::tool::propiflow::read_string ( std::string &  ) [virtual]

Reads an STL string, returns true on success

Author:
Aleksander Demko

Implements scopira::tool::itflow_i.


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