#include <iostream>
Go to the source code of this file.
|
class | BaseObject |
| It is an abstract base class due to the purely virtual functions declared below. Even if the function is purely virtual, it does not imply that it cannot have a definition. Abstract classes are useful to define a interface. More...
|
|
|
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...
|
|
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const BaseObject & |
o |
|
) |
| |
Operator overloading for passing the data from the BaseObject "o" into the output stream.
A purely virtual method with an implementation which reads the index from the stream and assigns it to id_.
- Parameters
-
- Returns
- std::ostream &
- Parameters
-
- Returns
- std::ostream &
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
-
- Returns
- std::istream&
virtual void read(std::istream &is)=0
Definition: BaseObject.cc:81