source: dev/trunk/abdev/BasicCompiler_Common/include/ObjectModule.h@ 279

Last change on this file since 279 was 279, checked in by dai_9181, 17 years ago

sourceをObjectModuleに入れた

File size: 1.1 KB
Line 
1#pragma once
2
3class ObjectModule : public Jenga::Common::BoostSerializationSupport<ObjectModule>
4{
5public:
6 // メタ情報
7 Meta meta;
8
9 // グローバル領域のネイティブコード
10 NativeCode globalNativeCode;
11
12 // データテーブル
13 DataTable dataTable;
14
15 // ソースコード
16 BasicSource source;
17
18 // XMLシリアライズ用
19private:
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 );
32 ar & BOOST_SERIALIZATION_NVP( source );
33 }
34
35public:
36 void StaticLink( ObjectModule &objectModule );
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;
42};
43typedef std::vector<ObjectModule *> ObjectModules;
Note: See TracBrowser for help on using the repository browser.