#include <iso_flock_serialize_tools.h>
Collaboration diagram for iso::flock::SerializeTools:
Public Types | |
enum | SerializeMode { ConfigMode, ValuesMode, AllMode } |
Public Member Functions | |
void | save (const base::String &pFileName, SerializeMode pMode=AllMode) throw (FlockException) |
void | restore (const base::String &pFileName, SerializeMode pMode=AllMode) throw (FlockException) |
template<typename BehaviorType> | |
void | registerBehavior () |
template<typename BehaviorType> | |
void | registerSwarmBehavior () |
Static Public Member Functions | |
static SerializeTools & | get () |
static void | destroy () |
Protected Member Functions | |
SerializeTools () | |
~SerializeTools () | |
void | saveConfig (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | restoreConfig (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | saveValues (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | restoreValues (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | createBehaviorMap () |
unsigned int | serialCount (serialize::SerializeData *pSerializeData, const base::String &pSerialName) |
serialize::SerializeData * | serial (serialize::SerializeData *pSerializeDate, const base::String &pSerialName, unsigned int pNr) |
void | serializeSim (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | serializeCom (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | serializeSpace (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | serializeSwarms (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | serializeVis (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | serializeValues (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | deSerializeSim (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | deSerializeCom (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | deSerializeSpace (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | deSerializeSwarms (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | deSerializeVis (serialize::SerializeData &pSerializeData) throw (FlockException) |
void | deSerializeValues (serialize::SerializeData &pSerializeData) throw (FlockException) |
Protected Attributes | |
QHash< base::String, Behavior * > | mBehaviorMap |
QHash< base::String, SwarmBehavior * > | mSwarmBehaviorMap |
Static Protected Attributes | |
static SerializeTools * | sInstance |
SerializeTools::SerializeTools | ( | ) | [protected] |
SerializeTools::~SerializeTools | ( | ) | [protected] |
SerializeTools & SerializeTools::get | ( | ) | [static] |
void SerializeTools::destroy | ( | ) | [static] |
void SerializeTools::save | ( | const base::String & | pFileName, | |
SerializeMode | pMode = AllMode | |||
) | throw (FlockException) |
void SerializeTools::restore | ( | const base::String & | pFileName, | |
SerializeMode | pMode = AllMode | |||
) | throw (FlockException) |
void iso::flock::SerializeTools::registerBehavior | ( | ) |
void iso::flock::SerializeTools::registerSwarmBehavior | ( | ) |
void SerializeTools::saveConfig | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::restoreConfig | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::saveValues | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::restoreValues | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::createBehaviorMap | ( | ) | [protected] |
unsigned int SerializeTools::serialCount | ( | serialize::SerializeData * | pSerializeData, | |
const base::String & | pSerialName | |||
) | [protected] |
serialize::SerializeData * SerializeTools::serial | ( | serialize::SerializeData * | pSerializeDate, | |
const base::String & | pSerialName, | |||
unsigned int | pNr | |||
) | [protected] |
void SerializeTools::serializeSim | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::serializeCom | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::serializeSpace | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::serializeSwarms | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::serializeVis | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::serializeValues | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::deSerializeSim | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::deSerializeCom | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::deSerializeSpace | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::deSerializeSwarms | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::deSerializeVis | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
void SerializeTools::deSerializeValues | ( | serialize::SerializeData & | pSerializeData | ) | throw (FlockException) [protected] |
SerializeTools * SerializeTools::sInstance [static, protected] |
QHash< base::String, Behavior* > iso::flock::SerializeTools::mBehaviorMap [protected] |
QHash< base::String, SwarmBehavior* > iso::flock::SerializeTools::mSwarmBehaviorMap [protected] |