source: dev/trunk/jenga/include/smoothie/Symbol.h@ 203

Last change on this file since 203 was 200, checked in by dai_9181, 17 years ago
File size: 875 bytes
Line 
1#pragma once
2
3#include <vector>
4#include <string>
5
6#include <jenga/include/common/BoostXmlSupport.h>
7
8#include "Namespace.h"
9
10using namespace std;
11
12class Symbol
13{
14 NamespaceScopes namespaceScopes;
15 string name;
16
17 // XMLシリアライズ用
18private:
19 friend class boost::serialization::access;
20 template<class Archive> void serialize(Archive& ar, const unsigned int version)
21 {
22 ar & BOOST_SERIALIZATION_NVP( namespaceScopes );
23 ar & BOOST_SERIALIZATION_NVP( name );
24 }
25
26public:
27 Symbol( const NamespaceScopes &namespaceScopes, const string &name )
28 : namespaceScopes( namespaceScopes )
29 , name( name )
30 {
31 }
32 Symbol( const char *fullName );
33 Symbol( const string &fullName );
34 Symbol()
35 {
36 }
37
38 const NamespaceScopes &GetNamespaceScopes() const
39 {
40 return namespaceScopes;
41 }
42 const string &GetName() const
43 {
44 return name;
45 }
46};
Note: See TracBrowser for help on using the repository browser.