Ignore:
Timestamp:
May 1, 2008, 11:03:14 PM (17 years ago)
Author:
dai_9181
Message:

ヘッダファイルを整理中

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/include
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Class.h

    r522 r523  
    1616
    1717public:
    18     ClassPrototype( const NamespaceScopes &namespaceScopes, const string &name )
     18    ClassPrototype( const NamespaceScopes &namespaceScopes, const std::string &name )
    1919        : Prototype( namespaceScopes, name )
    2020        , DynamicMethodsPrototype()
     
    106106public:
    107107
    108     CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name )
     108    CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const std::string &name )
    109109        : ClassPrototype( namespaceScopes, name )
    110110        , importedNamespaces( importedNamespaces )
     
    501501    virtual void Compile_System_InitializeUserTypesForBaseType();
    502502
    503     const CClass *Find( const NamespaceScopes &namespaceScopes, const string &name ) const;
    504     const CClass *Find( const string &fullName ) const;
     503    const CClass *Find( const NamespaceScopes &namespaceScopes, const std::string &name ) const;
     504    const CClass *Find( const std::string &fullName ) const;
    505505
    506506
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Const.h

    r509 r523  
    7575
    7676    void Add( const NamespaceScopes &namespaceScopes, char *buffer);
    77     void Add( const NamespaceScopes &namespaceScopes, const string &name, char *Expression);
    78     void Add( const NamespaceScopes &namespaceScopes, const string &name, int value);
     77    void Add( const NamespaceScopes &namespaceScopes, const std::string &name, char *Expression);
     78    void Add( const NamespaceScopes &namespaceScopes, const std::string &name, int value);
    7979
    8080private:
    81     CConst *GetObjectPtr( const string &name );
     81    CConst *GetObjectPtr( const std::string &name );
    8282public:
    8383
     
    107107
    108108public:
    109     ConstMacro( const NamespaceScopes &namespaceScopes, const std::string &name, const std::vector<std::string> &parameters, const string &expression )
     109    ConstMacro( const NamespaceScopes &namespaceScopes, const std::string &name, const std::vector<std::string> &parameters, const std::string &expression )
    110110        : Symbol( namespaceScopes, name )
    111111        , parameters( parameters )
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Member.h

    r510 r523  
    77#include <Program.h>
    88
    9 using namespace std;
    10 
    119class CClass;
    1210
    1311class CMember : public MemberPrototype
    1412{
    15     string name;
     13    std::string name;
    1614    Type type;
    1715    bool isConst;
    1816    Subscripts subscripts;
    1917
    20     string initializeExpression;
    21     string constructParameter;
     18    std::string initializeExpression;
     19    std::string constructParameter;
    2220
    2321    // XMLシリアライズ用
     
    4240    int source_code_address;
    4341
    44     const string &GetName() const
     42    const std::string &GetName() const
    4543    {
    4644        return name;
    4745    }
    48     void SetName( const string &name )
     46    void SetName( const std::string &name )
    4947    {
    5048        this->name = name;
     
    7068    }
    7169
    72     const string &GetInitializeExpression() const
     70    const std::string &GetInitializeExpression() const
    7371    {
    7472        return initializeExpression;
    7573    }
    76     const string &GetConstructParameter() const
     74    const std::string &GetConstructParameter() const
    7775    {
    7876        return constructParameter;
    7977    }
    8078
    81     CMember( Prototype::Accessibility accessibility, const string &name, const Type &newType, bool isConst, const Subscripts &subscripts, const string &initializeExpression, const string &constructParameter )
     79    CMember( Prototype::Accessibility accessibility, const std::string &name, const Type &newType, bool isConst, const Subscripts &subscripts, const std::string &initializeExpression, const std::string &constructParameter )
    8280        : MemberPrototype( accessibility )
    8381        , name( name )
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Method.h

    r465 r523  
    11#pragma once
    2 
    3 using namespace std;
    42
    53class UserProc;
     
    221219BOOST_CLASS_EXPORT( StaticMethod );
    222220
    223 class Methods : public vector<CMethod *>
     221class Methods : public std::vector<CMethod *>
    224222{
    225223    // XMLシリアライズ用
     
    256254    const CMethod *GetMethodPtr( const UserProc *pUserProc ) const;
    257255    bool IsExist( const char *name ) const;
    258     virtual void Enum( const char *methodName, vector<const UserProc *> &subs ) const;
    259     virtual void Enum( BYTE idOperatorCalc, vector<const UserProc *> &subs ) const;
     256    virtual void Enum( const char *methodName, std::vector<const UserProc *> &subs ) const;
     257    virtual void Enum( BYTE idOperatorCalc, std::vector<const UserProc *> &subs ) const;
    260258
    261259    // 仮想メソッドの個数を取得
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Procedure.h

    r518 r523  
    5757
    5858public:
    59     Procedure( const NamespaceScopes &namespaceScopes, const string &name, Kind kind, bool isCdecl )
     59    Procedure( const NamespaceScopes &namespaceScopes, const std::string &name, Kind kind, bool isCdecl )
    6060        : Symbol( namespaceScopes, name )
    6161        , kind( kind )
     
    114114{
    115115public:
    116     string _paramStr;
     116    std::string _paramStr;
    117117
    118118private:
     
    179179public:
    180180
    181     UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport )
     181    UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const std::string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport )
    182182        : Procedure( namespaceScopes, name, kind, isCdecl )
    183183        , importedNamespaces( importedNamespaces )
     
    434434class DllProc : public Procedure, public Jenga::Common::ObjectInHashmap<DllProc>
    435435{
    436     string dllFileName;
    437     string alias;
     436    std::string dllFileName;
     437    std::string alias;
    438438    int lookupAddress;
    439439
     
    452452
    453453public:
    454     DllProc( const NamespaceScopes &namespaceScopes, const string &name, Kind kind, bool isCdecl, const string &dllFileName, const string &alias )
     454    DllProc( const NamespaceScopes &namespaceScopes, const std::string &name, Kind kind, bool isCdecl, const std::string &dllFileName, const std::string &alias )
    455455        : Procedure( namespaceScopes, name, kind, isCdecl )
    456456        , dllFileName( dllFileName )
     
    481481    }
    482482
    483     const string &GetDllFileName() const
     483    const std::string &GetDllFileName() const
    484484    {
    485485        return dllFileName;
    486486    }
    487     const string &GetAlias() const
     487    const std::string &GetAlias() const
    488488    {
    489489        return alias;
     
    542542};
    543543
    544 class ProcPointers : public vector<ProcPointer *>
     544class ProcPointers : public std::vector<ProcPointer *>
    545545{
    546546    // XMLシリアライズ用
     
    564564    }
    565565
    566     int Add( const string &typeExpression );
     566    int Add( const std::string &typeExpression );
    567567    void Clear();
    568568    void PullOutAll()
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Source.h

    r520 r523  
    9696    }
    9797
    98     bool ReadFile( const string &filePath );
     98    bool ReadFile( const std::string &filePath );
    9999
    100100    static void Text::SlideString(char *buffer, int slide){
     
    109109class BasicSource : public Text
    110110{
    111     static const string generateDirectiveName;
     111    static const std::string generateDirectiveName;
    112112
    113113    IncludedFilesRelation includedFilesRelation;
     
    186186    void RemoveComments();
    187187
    188     bool ReadFile_InIncludeDirective( const string &filePath );
     188    bool ReadFile_InIncludeDirective( const std::string &filePath );
    189189    void DirectiveIncludeOrRequire();
    190190
     
    229229    void SetBuffer( const char *buffer );
    230230
    231     bool ReadFile( const string &filePath );
    232 
    233     bool Generate( const string &genName, const char *buffer );
     231    bool ReadFile( const std::string &filePath );
     232
     233    bool Generate( const std::string &genName, const char *buffer );
    234234
    235235    void Addition( const char *buffer );
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/TypeDef.h

    r509 r523  
    66#include <Type.h>
    77
    8 using namespace std;
    9 
    108class TypeDefCollection;
    119
     
    1412    friend TypeDefCollection;
    1513
    16     string baseName;
     14    std::string baseName;
    1715    Type baseType;
    1816
     
    3028
    3129public:
    32     TypeDef( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName, int nowLine );
     30    TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine );
    3331    TypeDef()
    3432    {
     
    3836    }
    3937
    40     const string &GetBaseName() const
     38    const std::string &GetBaseName() const
    4139    {
    4240        return baseName;
     
    6563    ~TypeDefCollection();
    6664
    67     void Add( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName, int nowLine );
    68     int GetIndex( const NamespaceScopes &namespaceScopes, const string &name ) const;
    69     int GetIndex( const string &fullName ) const;
     65    void Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine );
     66    int GetIndex( const NamespaceScopes &namespaceScopes, const std::string &name ) const;
     67    int GetIndex( const std::string &fullName ) const;
    7068
    7169private:
    72     void Add( const NamespaceScopes &namespaceScopes, const string &expression, int nowLine );
     70    void Add( const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine );
    7371public:
    7472    void CollectTypeDefs();
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Variable.h

    r511 r523  
    5757
    5858public:
    59     Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData );
    60     Variable( const NamespaceScopes &namespaceScopes, const string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData );
     59    Variable( const std::string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData );
     60    Variable( const NamespaceScopes &namespaceScopes, const std::string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData );
    6161    Variable( const Variable &var );
    6262    Variable();
     
    185185};
    186186
    187 class Variables : public vector<Variable *>
     187class Variables : public std::vector<Variable *>
    188188{
    189189protected:
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/logger.h

    r522 r523  
    8484inline void basic_dbg_streambuf<char>::dbg_out(const char *str)
    8585{
    86     ofstream ofs( ( saveFilePath ).c_str(), ios_base::app );
     86    std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::app );
    8787    ofs << "[" << (count++) << "] " << str ;
    8888    ofs.close();
     
    100100{
    101101public:
    102     basic_dbg_ostream( const string &saveFilePath, bool isOptionEnabled )
     102    basic_dbg_ostream( const std::string &saveFilePath, bool isOptionEnabled )
    103103        : std::basic_ostream<Ch_T, Tr_T>(new basic_dbg_streambuf<Ch_T, Tr_T>(saveFilePath,isOptionEnabled))
    104104    {
    105         ofstream ofs( ( saveFilePath ).c_str(), ios_base::trunc );
     105        std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::trunc );
    106106        ofs.close();
    107107    }
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/option.h

    r366 r523  
    3737
    3838#ifdef USE_TRACE
    39 #define trace(s) Program::logger << s << endl
     39#define trace(s) Program::logger << s << std::endl
    4040#else
    4141#define trace(s)
Note: See TracChangeset for help on using the changeset viewer.