mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-15 00:08:07 -04:00
68 lines
1.3 KiB
C++
Executable File
68 lines
1.3 KiB
C++
Executable File
//========================================================================
|
|
//
|
|
// ScriptDictionary.h - interface class to pass dictionaries around. Must be
|
|
// derived by a real class that hold the dictionary data.
|
|
//
|
|
// copyright 2001 Sony Online Entertainment
|
|
//
|
|
//========================================================================
|
|
|
|
#ifndef _INCLUDED_ScriptDictionary_H
|
|
#define _INCLUDED_ScriptDictionary_H
|
|
|
|
#include <vector>
|
|
|
|
|
|
namespace boost
|
|
{
|
|
template <class T> class shared_ptr;
|
|
}
|
|
|
|
|
|
class ScriptDictionary
|
|
{
|
|
public:
|
|
|
|
virtual ~ScriptDictionary();
|
|
|
|
virtual void serialize(void) = 0;
|
|
|
|
const stdvector<int8>::fwd & getSerializedData(void) const;
|
|
uint32 getCrc(void) const;
|
|
|
|
protected:
|
|
|
|
ScriptDictionary(void);
|
|
|
|
|
|
stdvector<int8>::fwd m_serializedData;
|
|
uint32 m_crc;
|
|
|
|
private:
|
|
ScriptDictionary(const ScriptDictionary &);
|
|
ScriptDictionary & operator = (const ScriptDictionary &);
|
|
};
|
|
typedef boost::shared_ptr<ScriptDictionary> ScriptDictionaryPtr;
|
|
|
|
|
|
inline ScriptDictionary::ScriptDictionary(void)
|
|
{
|
|
}
|
|
|
|
inline ScriptDictionary::~ScriptDictionary()
|
|
{
|
|
}
|
|
|
|
inline const stdvector<int8>::fwd & ScriptDictionary::getSerializedData(void) const
|
|
{
|
|
return m_serializedData;
|
|
}
|
|
|
|
inline uint32 ScriptDictionary::getCrc(void) const
|
|
{
|
|
return m_crc;
|
|
}
|
|
|
|
|
|
#endif // _INCLUDED_ScriptDictionary_H
|