OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OPENTREP::StructAbstract Struct Referenceabstract

Base class for the light structures. More...

#include <opentrep/basic/StructAbstract.hpp>

+ Inheritance diagram for OPENTREP::StructAbstract:

Public Member Functions

virtual ~StructAbstract ()
 
void toStream (std::ostream &ioOut) const
 
virtual void fromStream (std::istream &ioIn)
 
virtual std::string describe () const =0
 

Protected Member Functions

 StructAbstract ()
 

Detailed Description

Base class for the light structures.

Definition at line 16 of file StructAbstract.hpp.

Constructor & Destructor Documentation

virtual OPENTREP::StructAbstract::~StructAbstract ( )
inlinevirtual

Destructor.

Definition at line 22 of file StructAbstract.hpp.

OPENTREP::StructAbstract::StructAbstract ( )
inlineprotected

Protected Default Constructor to ensure this class is abtract.

Definition at line 51 of file StructAbstract.hpp.

Member Function Documentation

void OPENTREP::StructAbstract::toStream ( std::ostream &  ioOut) const
inline

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Definition at line 29 of file StructAbstract.hpp.

References describe().

virtual void OPENTREP::StructAbstract::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Reimplemented in OPENTREP::ScoreBoard, OPENTREP::StringPartition, OPENTREP::QuerySlices, OPENTREP::WordCombinationHolder, and OPENTREP::StringSet.

Definition at line 38 of file StructAbstract.hpp.

Referenced by operator>>().

virtual std::string OPENTREP::StructAbstract::describe ( ) const
pure virtual

Display of the structure.

Returns
std::string Dump of the structure.

Implemented in OPENTREP::ScoreBoard, OPENTREP::StringPartition, OPENTREP::QuerySlices, OPENTREP::WordCombinationHolder, OPENTREP::StringSet, and OPENTREP::ScoreType.

Referenced by toStream().


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