Rev | Line | |
---|
[270] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | class ObjectModule : public Jenga::Common::BoostSerializationSupport<ObjectModule>
|
---|
| 4 | {
|
---|
| 5 | public:
|
---|
| 6 | // メタ情報
|
---|
| 7 | Meta meta;
|
---|
| 8 |
|
---|
| 9 | // グローバル領域のネイティブコード
|
---|
| 10 | NativeCode globalNativeCode;
|
---|
| 11 |
|
---|
| 12 | // データテーブル
|
---|
| 13 | DataTable dataTable;
|
---|
| 14 |
|
---|
[279] | 15 | // ソースコード
|
---|
| 16 | BasicSource source;
|
---|
| 17 |
|
---|
[270] | 18 | // XMLシリアライズ用
|
---|
| 19 | private:
|
---|
| 20 | virtual const char *RootTagName() const
|
---|
| 21 | {
|
---|
| 22 | return "objectModule";
|
---|
| 23 | }
|
---|
| 24 | friend class boost::serialization::access;
|
---|
| 25 | template<class Archive> void serialize(Archive& ar, const unsigned int version)
|
---|
| 26 | {
|
---|
| 27 | trace_for_serialize( "serializing - objectModule" );
|
---|
| 28 |
|
---|
| 29 | ar & BOOST_SERIALIZATION_NVP( meta );
|
---|
| 30 | ar & BOOST_SERIALIZATION_NVP( globalNativeCode );
|
---|
| 31 | ar & BOOST_SERIALIZATION_NVP( dataTable );
|
---|
[279] | 32 | ar & BOOST_SERIALIZATION_NVP( source );
|
---|
[270] | 33 | }
|
---|
[273] | 34 |
|
---|
| 35 | public:
|
---|
| 36 | void StaticLink( ObjectModule &objectModule );
|
---|
[279] | 37 |
|
---|
| 38 | bool Read( const std::string &filePath );
|
---|
| 39 | bool Write( const std::string &filePath ) const;
|
---|
| 40 | bool ReadString( const std::string &str );
|
---|
| 41 | bool WriteString( std::string &str ) const;
|
---|
[270] | 42 | };
|
---|
| 43 | typedef std::vector<ObjectModule *> ObjectModules;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.