Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

AIFileIO Namespace Reference


Functions

template<> int serialize (std::ofstream &fout_, const std::vector< AIState > &stateVector_)
template<> int assemble (std::ifstream &fin_, std::vector< AIState > &stateVector_)
template<class T> int serialize (std::ofstream &fout_, const std::vector< T > &vector_)
template<class T> int assemble (std::ifstream &fin_, std::vector< T > &vector_)
template<> int serialize (std::ofstream &fout_, const std::vector< AIPremise > &premVector_)
template<> int assemble (std::ifstream &fin_, std::vector< AIPremise > &premVector_)
template<> int serialize (std::ofstream &fout_, const std::vector< AIAction > &actVector_)
template<> int assemble (std::ifstream &fin_, std::vector< AIAction > &actVector_)
template<> int serialize (std::ofstream &fout_, const std::vector< AILogic::AIRule > &ruleVector_)
template<> int assemble (std::ifstream &fin_, std::vector< AILogic::AIRule > &ruleVector_)


Detailed Description

namespace to help write/read AI classes to/from binary files


Function Documentation

template<>
int assemble std::ifstream &  fin_,
std::vector< AILogic::AIRule > &  ruleVector_
 

global function for reading in a stl vector of AIRules from a binary file. the function returns the number of bytes read

Parameters:
fin_ the file stream to read from (opened for binary input)
ruleVector_ a vector of AIRules to store the data (the vector will be cleared before storing the data)

template<>
int assemble std::ifstream &  fin_,
std::vector< AIAction > &  actVector_
 

global function for reading in a stl vector of AIActions from a binary file. the function returns the number of bytes read

Parameters:
fin_ the file stream to read from (opened for binary input)
actVector_ a vector of AIActions to store the data (the vector will be cleared before storing the data)

template<>
int assemble std::ifstream &  fin_,
std::vector< AIPremise > &  premVector_
 

global function for reading in a stl vector of AIPremises from a binary file. the function returns the number of bytes read

Parameters:
fin_ the file stream to read from (opened for binary input)
premVector_ a vector of AIPremises to store the data (the vector will be cleared before storing the data)

template<class T>
int assemble std::ifstream &  fin_,
std::vector< T > &  vector_
 

global template function for reading in a stl vector of a base type from a binary file. the function returns the number of bytes read

Parameters:
fin_ the file stream to read from (opened for binary input)
vector_ a vector of base type elements to store the data (the vector will be cleared before storing the data)

template<>
int assemble std::ifstream &  fin_,
std::vector< AIState > &  stateVector_
 

global function for reading in a stl vector of AIStates from a binary file. the function returns the number of bytes read.

Parameters:
fin_ the file stream to read from (opened for binary input)
stateVector_ a vector of AIStates to store the data (the vector will be cleared before storing the data)

template<>
int serialize std::ofstream &  fout_,
const std::vector< AILogic::AIRule > &  ruleVector_
 

global function for writing a stl vector of AIRules to a binary file. the function returns the number of bytes written

Parameters:
fout_ the file stream to write to (opened for binary output)
ruleVector_ the vector of AIRules to write

template<>
int serialize std::ofstream &  fout_,
const std::vector< AIAction > &  actVector_
 

global function for writing a stl vector of AIActions to a binary file. the function returns the number of bytes written

Parameters:
fout_ the file stream to write to (opened for binary output)
actVector_ the vector of AIActions to write

template<>
int serialize std::ofstream &  fout_,
const std::vector< AIPremise > &  premVector_
 

global function for writing a stl vector of AIPremises to a binary file. the function returns the number of bytes written

Parameters:
fout_ the file stream to write to (opened for binary output)
premVector_ the vector of AIPremises to write

template<class T>
int serialize std::ofstream &  fout_,
const std::vector< T > &  vector_
 

global template function for writing a stl vector of a base type to a binary file. the function returns the number of bytes written

Parameters:
fout_ the file stream to write to (opened for binary output)
vector_ the vector to write (base type elements only)

template<>
int serialize std::ofstream &  fout_,
const std::vector< AIState > &  stateVector_
 

global function for writing a stl vector of AIStates to a binary file. the function returns the number of bytes written

Parameters:
fout_ the file stream to write to (opened for binary output)
stateVector_ the vector of AIStates to write


Generated on Sun Apr 11 05:05:56 2004 for FSM_API by doxygen 1.3.6