Ignore:
Timestamp:
Jun 11, 2008, 10:10:26 PM (16 years ago)
Author:
dai_9181
Message:

リンカの依存関係解決モジュールを製作中

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h

    r636 r637  
    265265class SourceCodePosition
    266266{
    267     std::string objectModuleName;
     267    int relationalObjectModuleIndex;
    268268    int pos;
    269269
     
    273273    template<class Archive> void serialize(Archive& ar, const unsigned int version)
    274274    {
    275         trace_for_serialize( "serializing - IncludedFilesRelation" );
    276 
    277         ar & BOOST_SERIALIZATION_NVP( objectModuleName );
     275        ar & BOOST_SERIALIZATION_NVP( relationalObjectModuleIndex );
    278276        ar & BOOST_SERIALIZATION_NVP( pos );
    279277    }
    280278
    281279public:
    282     SourceCodePosition( const std::string &objectModuleName, int pos )
    283         : objectModuleName( objectModuleName )
     280    SourceCodePosition( int relationalObjectModuleIndex, int pos )
     281        : relationalObjectModuleIndex( relationalObjectModuleIndex )
    284282        , pos( pos )
    285283    {
    286284    }
    287285    SourceCodePosition()
    288         : pos( -1 )
    289     {
    290     }
    291 
    292     const std::string &GetObjectModuleName() const
    293     {
    294         return objectModuleName;
     286        : relationalObjectModuleIndex( -1 )
     287        , pos( -1 )
     288    {
     289    }
     290
     291    int GetRelationalObjectModuleIndex() const;
     292    void SetRelationalObjectModuleIndex( int relationalObjectModuleIndex )
     293    {
     294        this->relationalObjectModuleIndex = relationalObjectModuleIndex;
    295295    }
    296296    int GetPos() const
     
    298298        return pos;
    299299    }
    300 };
     300    void SetPos( int pos )
     301    {
     302        this->pos = pos;
     303    }
     304
     305    bool IsNothing() const;
     306};
Note: See TracChangeset for help on using the changeset viewer.