Ignore:
Timestamp:
Apr 28, 2008, 7:28:47 PM (16 years ago)
Author:
dai_9181
Message:

NamespaceScopes、NamespaceScopesCollectionクラスをab_commonプロジェクトに移動した。

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  
    55#include <boost/foreach.hpp>
    66
    7 #include <BoostSerializationSupport.h>
    87
    9 using namespace std;
     8namespace ActiveBasic{ namespace Common{ namespace Lexical{
    109
    11 class NamespaceScopes : public vector<string>
     10
     11class NamespaceScopes : public std::vector<std::string>
    1212{
    1313    // XMLシリアライズ用
     
    2222public:
    2323    NamespaceScopes(){}
    24     NamespaceScopes( const string &namespaceStr );
     24    NamespaceScopes( const std::string &namespaceStr );
    2525    ~NamespaceScopes(){}
    2626
    27     string ToString() const
     27    std::string ToString() const
    2828    {
    29         string namespaceStr;
    30         const vector<string> &me = *this;
     29        std::string namespaceStr;
     30        const std::vector<std::string> &me = *this;
    3131
    3232        bool isFirst = true;
    33         BOOST_FOREACH( const string &itemStr, me ){
     33        BOOST_FOREACH( const std::string &itemStr, me ){
    3434            if( isFirst ){
    3535                isFirst = false;
     
    4545
    4646    // 等しいかをチェック
    47     bool IsEqual( const string &name ) const
     47    bool IsEqual( const std::string &name ) const
    4848    {
    4949        if( ToString() == name ){
     
    8282};
    8383
    84 class NamespaceScopesCollection : public vector<NamespaceScopes>
     84class NamespaceScopesCollection : public std::vector<NamespaceScopes>
    8585{
    8686    // XMLシリアライズ用
     
    103103        return false;
    104104    }
    105     bool IsExist( const string &namespaceStr ) const
     105    bool IsExist( const std::string &namespaceStr ) const
    106106    {
    107107        return IsExist( NamespaceScopes( namespaceStr ) );
     
    123123    void SplitNamespace( const char *fullName, char *namespaceStr, char *simpleName ) const;
    124124};
     125
     126
     127}}}
Note: See TracChangeset for help on using the changeset viewer.