NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Functions
Envelope.cpp File Reference

Container for message data passed between cores. More...

#include "Envelope.h"
#include <boost/any.hpp>
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <EngineConfig.h>
#include "EventLogger.h"
#include "Entity.h"
Include dependency graph for Envelope.cpp:

Go to the source code of this file.

Functions

const std::string SERIALIZATION_ROOT ("NLS_SD_1_0_0")
void SaveToDisk (const EnvelopeSPTR &envelope, const std::string &file)
 Saves the EnvelopeSPTR, including all its data, into the named file.
bool LoadFromDisk (const EnvelopeSPTR &envelope, const std::string &file)
 Loads the EnvelopeSPTR, including all its data, from the named file. Note that this will only work if GetCount returns 0 - ie: there's nothing stored in the envelope.

Detailed Description

Container for message data passed between cores.

Author:
Adam Martin
Date:
July 21 2011

Definition in file Envelope.cpp.


Function Documentation

bool LoadFromDisk ( const EnvelopeSPTR &  envelope,
const std::string &  file 
)

Loads the EnvelopeSPTR, including all its data, from the named file. Note that this will only work if GetCount returns 0 - ie: there's nothing stored in the envelope.

Definition at line 46 of file Envelope.cpp.

void SaveToDisk ( const EnvelopeSPTR &  envelope,
const std::string &  file 
)

Saves the EnvelopeSPTR, including all its data, into the named file.

Definition at line 32 of file Envelope.cpp.