BaseObject.cc File Reference
#include "BaseObject.h"
#include "Logger.h"
#include "Math/Helpers.h"

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

◆ operator<<()

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 &
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

◆ operator>>()

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&
48 {
49  o.read(is);
50  return (is);
51 }
virtual void read(std::istream &is)=0
Definition: BaseObject.cc:81