Changeset 505 in dev for trunk/ab5.0/abdev/ab_common/include
- Timestamp:
- Apr 28, 2008, 7:28:47 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/ab_common/include
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Namespace.h
r503 r505 5 5 #include <boost/foreach.hpp> 6 6 7 #include <BoostSerializationSupport.h>8 7 9 using namespace std; 8 namespace ActiveBasic{ namespace Common{ namespace Lexical{ 10 9 11 class NamespaceScopes : public vector<string> 10 11 class NamespaceScopes : public std::vector<std::string> 12 12 { 13 13 // XMLシリアライズ用 … … 22 22 public: 23 23 NamespaceScopes(){} 24 NamespaceScopes( const st ring &namespaceStr );24 NamespaceScopes( const std::string &namespaceStr ); 25 25 ~NamespaceScopes(){} 26 26 27 st ring ToString() const27 std::string ToString() const 28 28 { 29 st ring namespaceStr;30 const vector<string> &me = *this;29 std::string namespaceStr; 30 const std::vector<std::string> &me = *this; 31 31 32 32 bool isFirst = true; 33 BOOST_FOREACH( const st ring &itemStr, me ){33 BOOST_FOREACH( const std::string &itemStr, me ){ 34 34 if( isFirst ){ 35 35 isFirst = false; … … 45 45 46 46 // 等しいかをチェック 47 bool IsEqual( const st ring &name ) const47 bool IsEqual( const std::string &name ) const 48 48 { 49 49 if( ToString() == name ){ … … 82 82 }; 83 83 84 class NamespaceScopesCollection : public vector<NamespaceScopes>84 class NamespaceScopesCollection : public std::vector<NamespaceScopes> 85 85 { 86 86 // XMLシリアライズ用 … … 103 103 return false; 104 104 } 105 bool IsExist( const st ring &namespaceStr ) const105 bool IsExist( const std::string &namespaceStr ) const 106 106 { 107 107 return IsExist( NamespaceScopes( namespaceStr ) ); … … 123 123 void SplitNamespace( const char *fullName, char *namespaceStr, char *simpleName ) const; 124 124 }; 125 126 127 }}}
Note:
See TracChangeset
for help on using the changeset viewer.