#include <research.h>
Inheritance diagram for TechAdapter:

Public Member Functions | |
| TechAdapter () | |
| bool | available (const Research &research) const |
| const ASCString & | getName () const |
| void | read (tnstream &stream) |
| read the binary representation of this item from the given stream | |
| void | write (tnstream &stream) const |
| write the binary representation of this item to the given stream | |
| void | runTextIO (PropertyContainer &pc) |
| registers the properties of this item for loading/writing into asctxt files | |
Public Attributes | |
| TechDependency | techDependency |
Definition at line 88 of file research.h.
| TechAdapter::TechAdapter | ( | ) |
Definition at line 432 of file research.cpp.
| bool TechAdapter::available | ( | const Research & | research | ) | const |
Definition at line 402 of file research.cpp.
References TechDependency::available(), and techDependency.
| const ASCString& TechAdapter::getName | ( | ) | const [inline] |
Definition at line 95 of file research.h.
| void TechAdapter::read | ( | tnstream & | stream | ) | [virtual] |
read the binary representation of this item from the given stream
Implements LoadableItemType.
Definition at line 379 of file research.cpp.
References tnstream::getDeviceName(), TechDependency::read(), tnstream::readInt(), tnstream::readString(), and techDependency.
| void TechAdapter::write | ( | tnstream & | stream | ) | const [virtual] |
write the binary representation of this item to the given stream
Implements LoadableItemType.
Definition at line 388 of file research.cpp.
References techDependency, TechDependency::write(), tnstream::writeInt(), and tnstream::writeString().
| void TechAdapter::runTextIO | ( | PropertyContainer & | pc | ) | [virtual] |
registers the properties of this item for loading/writing into asctxt files
Implements LoadableItemType.
Definition at line 395 of file research.cpp.
References PropertyContainer::addString(), TechDependency::runTextIO(), techDependency, and ASCString::toLower().
Definition at line 91 of file research.h.
Referenced by available(), read(), runTextIO(), and write().
1.5.1