Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
TechAdapter Class Reference

#include <research.h>

Inheritance diagram for TechAdapter:
Inheritance graph
[legend]

Public Member Functions

 TechAdapter ()
 
bool available (const Research &research) const
 
const ASCStringgetName () const
 
void read (tnstream &stream)
 read the binary representation of this item from the given stream More...
 
void write (tnstream &stream) const
 write the binary representation of this item to the given stream More...
 
void runTextIO (PropertyContainer &pc)
 registers the properties of this item for loading/writing into asctxt files More...
 
- Public Member Functions inherited from LoadableItemType
virtual ~LoadableItemType ()
 

Public Attributes

TechDependency techDependency
 
- Public Attributes inherited from LoadableItemType
ASCString filename
 The name of the file from which the item was loaded. More...
 
ASCString location
 The filename and location on disk (including containerfiles) of the object. More...
 
ASCString archive
 

Detailed Description

Definition at line 88 of file research.h.

Constructor & Destructor Documentation

TechAdapter::TechAdapter ( )

Definition at line 432 of file research.cpp.

Member Function Documentation

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::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().

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().

Member Data Documentation

TechDependency TechAdapter::techDependency

Definition at line 91 of file research.h.

Referenced by available(), read(), runTextIO(), and write().


The documentation for this class was generated from the following files: