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

a class for storing general key/values pairs. Intended as a mechanism to persist data from Lua scripts More...

#include <typen.h>

Public Member Functions

ASCString getValue (const ASCString &key)
 
void setValue (const ASCString &key, const ASCString &value)
 
void write (tnstream &stream) const
 
void read (tnstream &stream)
 

Detailed Description

a class for storing general key/values pairs. Intended as a mechanism to persist data from Lua scripts

Definition at line 273 of file typen.h.

Member Function Documentation

ASCString Properties::getValue ( const ASCString key)

Definition at line 364 of file typen.cpp.

void Properties::read ( tnstream stream)

Definition at line 384 of file typen.cpp.

References tnstream::readInt(), and tnstream::readTextString().

Referenced by GameMap::read().

void Properties::setValue ( const ASCString key,
const ASCString value 
)

Definition at line 369 of file typen.cpp.

void Properties::write ( tnstream stream) const

Definition at line 374 of file typen.cpp.

References tnstream::writeInt(), and tnstream::writeString().

Referenced by GameMap::write().


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