MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaseObject.cc File Reference
#include "BaseObject.h"
#include "Logger.h"
#include "Math/Helpers.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 36 of file BaseObject.cc.

References BaseObject::write().

37 {
38  o.write(os);
39  return os;
40 }
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:91
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 47 of file BaseObject.cc.

References BaseObject::read().

48 {
49  o.read(is);
50  return (is);
51 }
virtual void read(std::istream &is)=0
Definition: BaseObject.cc:81