TechAdapter Class Reference

#include <research.h>

Inheritance diagram for TechAdapter:

Inheritance graph
[legend]
List of all members.

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

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


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:
Generated on Mon May 21 01:47:44 2012 for Advanced Strategic Command by  doxygen 1.5.1