MercuryDPM  Beta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaseObject.cc File Reference
#include "BaseObject.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const BaseObject &o)
 Operator overloading for passing the data from the BaseObject "o" into the output stream. More...
 
std::istream & operator>> (std::istream &is, BaseObject &o)
 Operator overloading for reading the data from an input stream into the BAseObject "o". More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const BaseObject o 
)

Operator overloading for passing the data from the BaseObject "o" into the output stream.

Parameters
[in,out]os
[in]o
Returns
std::ostream &

Definition at line 33 of file BaseObject.cc.

References BaseObject::write().

34 {
35  o.write(os);
36  return os;
37 }
virtual void write(std::ostream &os) const =0
A purely virtual function which has an implementation which writes the name and the object id_ to the...
Definition: BaseObject.cc:128
std::istream& operator>> ( std::istream &  is,
BaseObject o 
)

Operator overloading for reading the data from an input stream into the BAseObject "o".

Parameters
[in]o
[in,out]is
Returns
std::istream&

Definition at line 43 of file BaseObject.cc.

References BaseObject::read().

44 {
45  o.read(is);
46  return (is);
47 }
virtual void read(std::istream &is)=0
A purely virtual method with an implementation which reads the index from the stream and assigns it t...
Definition: BaseObject.cc:120