Changeset 585 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/ObjectModule.h
- Timestamp:
- May 10, 2008, 1:40:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/ObjectModule.h
r404 r585 1 1 #pragma once 2 2 3 class ObjectModule3 class NativeSection 4 4 { 5 5 public: 6 // メタ情報7 Meta meta;8 9 6 // グローバル領域のネイティブコード 10 7 NativeCode globalNativeCode; … … 22 19 virtual const char *RootTagName() const 23 20 { 24 return " objectModule";21 return "nativeSection"; 25 22 } 26 23 friend class boost::serialization::access; … … 29 26 trace_for_serialize( "serializing - objectModule" ); 30 27 31 ar & BOOST_SERIALIZATION_NVP( meta );32 28 ar & BOOST_SERIALIZATION_NVP( globalNativeCode ); 33 29 ar & BOOST_SERIALIZATION_NVP( dataTable ); … … 37 33 38 34 public: 39 void StaticLink( ObjectModule &objectModule );40 41 35 int GetCurrentSourceIndex() const 42 36 { … … 63 57 return sources; 64 58 } 59 }; 60 61 class ObjectModule 62 { 63 public: 64 // メタ情報 65 Meta meta; 66 67 NativeSection nativeSection; 68 69 // XMLシリアライズ用 70 private: 71 virtual const char *RootTagName() const 72 { 73 return "objectModule"; 74 } 75 friend class boost::serialization::access; 76 template<class Archive> void serialize(Archive& ar, const unsigned int version) 77 { 78 trace_for_serialize( "serializing - objectModule" ); 79 80 ar & BOOST_SERIALIZATION_NVP( meta ); 81 ar & BOOST_SERIALIZATION_NVP( nativeSection ); 82 } 83 84 public: 85 void StaticLink( ObjectModule &objectModule ); 65 86 66 87 bool Read( const std::string &filePath ); 67 88 bool Write( const std::string &filePath ) const; 68 bool ReadString( const std::string &str);69 bool WriteString( std::string &str) const;89 bool Load( const Jenga::Common::Binary &binary ); 90 bool Save( Jenga::Common::Binary &binary ) const; 70 91 }; 71 92 typedef std::vector<ObjectModule *> ObjectModules;
Note:
See TracChangeset
for help on using the changeset viewer.