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/TypeDef.h

    r632 r637  
    33class TypeDefCollection;
    44
    5 class TypeDef : public Symbol
     5class TypeDef
     6    : public RelationalObjectModuleItem
    67{
    78    friend TypeDefCollection;
     
    1718        trace_for_serialize( "serializing - TypeDef" );
    1819
    19         ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Symbol );
     20        ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( RelationalObjectModuleItem );
     21
     22        if( ActiveBasic::Common::Environment::IsRemoveExternal() )
     23        {
     24            if( this->IsExternal() )
     25            {
     26                this->NeedResolve();
     27                return;
     28            }
     29        }
     30
    2031        ar & BOOST_SERIALIZATION_NVP( baseName );
    2132        ar & BOOST_SERIALIZATION_NVP( baseType );
     
    2334
    2435public:
    25     TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, const Type &baseType );
     36    TypeDef( const Symbol &symbol, const std::string &baseName, const Type &baseType );
    2637    TypeDef()
    2738    {
     
    3950        return baseType;
    4051    }
     52
     53    virtual bool Resolve();
    4154};
    4255
     
    5871    ~TypeDefCollection();
    5972
    60     void Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine );
     73    void Add( const Symbol &symbol, const std::string &baseName, int nowLine );
    6174    const TypeDef *Find( const Symbol &symbol ) const;
    6275};
Note: See TracChangeset for help on using the changeset viewer.