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