OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
OPENTREP::OPENTREP_Abstract Struct Referenceabstract

#include <opentrep/OPENTREP_Abstract.hpp>

+ Inheritance diagram for OPENTREP::OPENTREP_Abstract:

Public Member Functions

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

Protected Member Functions

 OPENTREP_Abstract ()
 
 OPENTREP_Abstract (const OPENTREP_Abstract &)
 
virtual ~OPENTREP_Abstract ()
 

Detailed Description

Base class for the OPENTREP interface structures.

Definition at line 16 of file OPENTREP_Abstract.hpp.

Constructor & Destructor Documentation

◆ OPENTREP_Abstract() [1/2]

OPENTREP::OPENTREP_Abstract::OPENTREP_Abstract ( )
inlineprotected

Protected Default Constructor to ensure this class is abtract.

Definition at line 43 of file OPENTREP_Abstract.hpp.

Referenced by OPENTREP_Abstract().

◆ OPENTREP_Abstract() [2/2]

OPENTREP::OPENTREP_Abstract::OPENTREP_Abstract ( const OPENTREP_Abstract & )
inlineprotected

Definition at line 44 of file OPENTREP_Abstract.hpp.

References OPENTREP_Abstract().

◆ ~OPENTREP_Abstract()

virtual OPENTREP::OPENTREP_Abstract::~OPENTREP_Abstract ( )
inlineprotectedvirtual

Destructor.

Definition at line 49 of file OPENTREP_Abstract.hpp.

Member Function Documentation

◆ toStream()

virtual void OPENTREP::OPENTREP_Abstract::toStream ( std::ostream & ioOut) const
pure virtual

Dump a structure into an output stream.

Parameters
ostream&the output stream.

Implemented in OPENTREP::CityDetails, OPENTREP::DBParams, OPENTREP::DistanceErrorRule, OPENTREP::Location, OPENTREP::LocationKey, OPENTREP::NameMatrix, and OPENTREP::Names.

◆ fromStream()

virtual void OPENTREP::OPENTREP_Abstract::fromStream ( std::istream & ioIn)
pure virtual

Read a structure from an input stream.

Parameters
istream&the input stream.

Implemented in OPENTREP::CityDetails, OPENTREP::DBParams, OPENTREP::DistanceErrorRule, OPENTREP::Location, OPENTREP::LocationKey, OPENTREP::NameMatrix, and OPENTREP::Names.

Referenced by operator>>().

◆ toString()

virtual std::string OPENTREP::OPENTREP_Abstract::toString ( ) const
pure virtual

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