Ignore:
Timestamp:
May 10, 2008, 3:09:26 PM (16 years ago)
Author:
dai_9181
Message:

[585][586]をリバース。NativeCodeクラスとMetaクラスは依存関係があるので分離しない方針とする。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/ObjectModule.h

    r585 r587  
    11#pragma once
    22
    3 class NativeSection
     3class ObjectModule
    44{
    55public:
     6    // メタ情報
     7    Meta meta;
     8
    69    // グローバル領域のネイティブコード
    710    NativeCode globalNativeCode;
     
    1922    virtual const char *RootTagName() const
    2023    {
    21         return "nativeSection";
     24        return "objectModule";
    2225    }
    2326    friend class boost::serialization::access;
     
    2629        trace_for_serialize( "serializing - objectModule" );
    2730
     31        ar & BOOST_SERIALIZATION_NVP( meta );
    2832        ar & BOOST_SERIALIZATION_NVP( globalNativeCode );
    2933        ar & BOOST_SERIALIZATION_NVP( dataTable );
     
    3337
    3438public:
     39    void StaticLink( ObjectModule &objectModule );
     40
    3541    int GetCurrentSourceIndex() const
    3642    {
     
    5763        return sources;
    5864    }
    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 );
    8665
    8766    bool Read( const std::string &filePath );
    8867    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;
    9170};
    9271typedef std::vector<ObjectModule *> ObjectModules;
Note: See TracChangeset for help on using the changeset viewer.