Ignore:
Timestamp:
Jun 26, 2007, 12:05:36 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/smoothie/Prototype.h

    r170 r190  
    44#include <vector>
    55
    6 #include "Namespace.h"
     6#include <jenga/include/common/BoostXmlSupport.h>
     7
     8#include "Symbol.h"
    79
    810using namespace std;
     
    1113class UserProc;
    1214
    13 class Prototype
     15class Prototype : public Symbol
    1416{
    1517public:
     
    2224
    2325private:
    24     // 名前空間
    25     NamespaceScopes namespaceScopes;
    26 
    27     //名前
    28     string name;
    29 
    3026    mutable bool isUsing;
    3127
     
    3329
    3430    Prototype( const NamespaceScopes &namespaceScopes, const string &name )
    35         : namespaceScopes( namespaceScopes )
    36         , name( name )
     31        : Symbol( namespaceScopes, name )
    3732        , isUsing( false )
     33    {
     34    }
     35    Prototype()
     36        : Symbol()
    3837    {
    3938    }
    4039    ~Prototype()
    4140    {
    42     }
    43 
    44     // 名前空間
    45     const NamespaceScopes &GetNamespaceScopes() const
    46     {
    47         return namespaceScopes;
    48     }
    49 
    50     const string &GetName() const
    51     {
    52         return name;
    5341    }
    5442
     
    7563    {
    7664        isUsing = true;
     65    }
     66
     67    // XMLシリアライズ用
     68private:
     69    friend class boost::serialization::access;
     70    template<class Archive> void serialize(Archive& ar, const unsigned int version)
     71    {
     72        ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Symbol );
    7773    }
    7874
Note: See TracChangeset for help on using the changeset viewer.