Changeset 523 in dev for trunk/ab5.0/abdev


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

ヘッダファイルを整理中

Location:
trunk/ab5.0/abdev
Files:
45 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp

    r519 r523  
    171171    lstrcpy(path,temp3);
    172172}
    173 void GetFullPath( char *path, const string &baseDirPath ){
     173void GetFullPath( char *path, const std::string &baseDirPath ){
    174174    int i,i2,i3,i4;
    175175    char temporary[MAX_PATH];
     
    590590
    591591    // グローバルローケルを日本語にする
    592     locale::global(locale("japanese"));
     592    std::locale::global(std::locale("japanese"));
    593593    _setmode(_fileno(stdout), _O_BINARY);
    594594
  • trunk/ab5.0/abdev/BasicCompiler_Common/Diagnose.cpp

    r485 r523  
    2323        extern int GlobalOpBufferSize;
    2424        sprintf(temporary, "%d", GlobalOpBufferSize/1024 );
    25         trace_for_size( (string)"グローバル領域のコードサイズ: " + temporary + "KB" );
     25        trace_for_size( (std::string)"グローバル領域のコードサイズ: " + temporary + "KB" );
    2626        //sprintf(temporary, "%d", (obp-GlobalOpBufferSize)/1024 );
    27         //trace_for_size( (string)"ローカル領域のコードサイズ: " + temporary + "KB" );
     27        //trace_for_size( (std::string)"ローカル領域のコードサイズ: " + temporary + "KB" );
    2828        //sprintf(temporary, "%d", obp/1024 );
    29         //trace_for_size( (string)"コードサイズ総量: " + temporary + "KB" );
     29        //trace_for_size( (std::string)"コードサイズ総量: " + temporary + "KB" );
    3030    }
    3131
     
    5252
    5353        sprintf(temporary, "%d", codeSizeOfGlobalProc/1024 );
    54         trace_for_size( (string)"グローバル関数のコードサイズ総量: " + temporary + "KB" );
     54        trace_for_size( (std::string)"グローバル関数のコードサイズ総量: " + temporary + "KB" );
    5555        sprintf(temporary, "%d", codeSizeOfClassMethod/1024 );
    56         trace_for_size( (string)"クラスメソッドのコードサイズ総量: " + temporary + "KB" );
     56        trace_for_size( (std::string)"クラスメソッドのコードサイズ総量: " + temporary + "KB" );
    5757    }
    5858
     
    9292
    9393        sprintf(temporary, "%d", codeSizeOfEnum/1024 );
    94         trace_for_size( (string)"Enumのコードサイズ総量: " + temporary + "KB" );
     94        trace_for_size( (std::string)"Enumのコードサイズ総量: " + temporary + "KB" );
    9595    }
    9696
  • trunk/ab5.0/abdev/BasicCompiler_Common/MakeExe.cpp

    r519 r523  
    175175                if( compiler.staticLibraries.back()->Read( coreFilePath ) )
    176176                {
    177                     compiler.messenger.Output( ((string)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() );
     177                    compiler.messenger.Output( ((std::string)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() );
    178178                }
    179179                else
     
    198198                if( compiler.staticLibraries.back()->Read( filePath ) )
    199199                {
    200                     compiler.messenger.Output( ((string)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() );
     200                    compiler.messenger.Output( ((std::string)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() );
    201201                }
    202202                else
  • trunk/ab5.0/abdev/BasicCompiler_Common/NonVolatile.cpp

    r519 r523  
    44
    55
    6 char *ReadBuffer_NonErrMsg( const string &path ){
     6char *ReadBuffer_NonErrMsg( const std::string &path ){
    77    extern HANDLE hHeap;
    88    int i;
     
    2020    return buffer;
    2121}
    22 _int8 WriteBuffer( const string &path, char *buffer,int length){
     22_int8 WriteBuffer( const std::string &path, char *buffer,int length){
    2323    extern HWND hOwnerEditor;
    2424    HANDLE hFile;
     
    247247    char temporary[MAX_PATH];
    248248
    249     const string userSettingDirPath = Jenga::Common::Environment::GetAppDir() + "\\UserSetting";
     249    const std::string userSettingDirPath = Jenga::Common::Environment::GetAppDir() + "\\UserSetting";
    250250
    251251    HANDLE hFind;
  • trunk/ab5.0/abdev/BasicCompiler_Common/NonVolatile.h

    r165 r523  
    11
    2 char *ReadBuffer_NonErrMsg( const string &path );
     2char *ReadBuffer_NonErrMsg( const std::string &path );
    33
    44class CNonVolatile{
  • trunk/ab5.0/abdev/BasicCompiler_Common/NumOpe_GetType.cpp

    r465 r523  
    360360    GetVarFormatString( methodName, parameter, lpPtrOffset, dummy, refType, &pareOrBracket );
    361361
    362     vector<const UserProc *> userProcs;
     362    std::vector<const UserProc *> userProcs;
    363363    leftType.GetClass().EnumDynamicMethodsOrInterfaceMethods( methodName, userProcs );
    364364    if(userProcs.size()){
  • trunk/ab5.0/abdev/BasicCompiler_Common/ParamImpl.cpp

    r485 r523  
    312312}
    313313
    314 bool ParamImpl::ErrorCheck( const string &procName, const Parameters &params, int SecondParmNum ){
     314bool ParamImpl::ErrorCheck( const std::string &procName, const Parameters &params, int SecondParmNum ){
    315315    if( SecondParmNum == -1 ) SecondParmNum = (int)params.size();
    316316
  • trunk/ab5.0/abdev/BasicCompiler_Common/Subroutine.cpp

    r511 r523  
    306306bool GetReturnTypeOfIndexerGetterProc( const Type &classType, Type &resultType )
    307307{
    308     vector<const UserProc *> subs;
     308    std::vector<const UserProc *> subs;
    309309    classType.GetClass().GetDynamicMethods().Enum( CALC_ARRAY_GET, subs );
    310310    if( subs.size() == 0 ){
  • trunk/ab5.0/abdev/BasicCompiler_Common/common.h

    r515 r523  
    55
    66#include <option.h>
    7 
    8 using namespace std;
    97
    108#ifdef _AMD64_
     
    218216void epi_check();
    219217void GetRelationalPath(char *path,char *dir);
    220 void GetFullPath( char *path, const string &baseDirPath );
     218void GetFullPath( char *path, const std::string &baseDirPath );
    221219std::string GetApplicationBaseFullPath( const std::string &relationalPath );
    222220void ShowErrorLine(int LineNum,const char *FileName);
     
    361359bool GetReturnTypeOfPropertyMethod( const char *variable, const char *rightSide, Type &resultType );
    362360bool GetReturnTypeOfIndexerGetterProc( const Type &classType, Type &resultType );
    363 int AddProcPtrInfo( const string &typeExpression, int nowLine );
     361int AddProcPtrInfo( const std::string &typeExpression, int nowLine );
    364362bool IsNeedProcCompile();
    365363void CompileLocal();
  • trunk/ab5.0/abdev/BasicCompiler_Common/hash.cpp

    r509 r523  
    162162    const CClass *pClass = compiler.GetObjectModule().meta.GetClasses().Find( className );
    163163    if( pClass ){
    164         vector<const UserProc *> userProcs;
     164        std::vector<const UserProc *> userProcs;
    165165        pClass->EnumDynamicMethodsOrInterfaceMethods( methodName, userProcs );
    166166        if( userProcs.size() == 1 ){
  • 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)
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/BoostSerializationSupport.cpp

    r522 r523  
    5353    MessageBox( NULL, msg, "XMLシリアライズの例外", MB_OK );
    5454}
    55 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( istream& ifs, bool isShowExceptionMessage )
     55template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( std::istream& ifs, bool isShowExceptionMessage )
    5656{
    5757    bool isSuccessful = false;
     
    8686    return true;
    8787}
    88 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( ostream& ofs, bool isShowExceptionMessage ) const
     88template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( std::ostream& ofs, bool isShowExceptionMessage ) const
    8989{
    9090    bool isSuccessful = false;
     
    119119    return true;
    120120}
    121 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( const string &xmlFilePath, bool isShowExceptionMessage )
     121template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage )
    122122{
    123123    // 入力アーカイブの作成
     
    131131    return result;
    132132}
    133 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( const string &xmlFilePath, bool isShowExceptionMessage ) const
     133template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage ) const
    134134{
    135135    // 出力アーカイブの作成
     
    201201}
    202202
    203 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadBinaryFile( const string &filePath, bool isShowExceptionMessage )
    204 {
    205     // 入力アーカイブの作成
    206     std::ifstream ifs( filePath.c_str(), ios::in | ios::binary );
     203template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadBinaryFile( const std::string &filePath, bool isShowExceptionMessage )
     204{
     205    // 入力アーカイブの作成
     206    std::ifstream ifs( filePath.c_str(), std::ios::in | std::ios::binary );
    207207
    208208    bool isSuccessful = false;
     
    239239    return true;
    240240}
    241 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteBinaryFile( const string &filePath, bool isShowExceptionMessage ) const
     241template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteBinaryFile( const std::string &filePath, bool isShowExceptionMessage ) const
    242242{
    243243    // 出力アーカイブの作成
    244     std::ofstream ofs( filePath.c_str(), ios::out | ios::binary );
     244    std::ofstream ofs( filePath.c_str(), std::ios::out | std::ios::binary );
    245245
    246246    bool isSuccessful = false;
     
    283283
    284284    // 入力アーカイブの作成
    285     std::istringstream iss( binaryString, ios::in | ios::binary );
     285    std::istringstream iss( binaryString, std::ios::in | std::ios::binary );
    286286
    287287    try{
     
    306306{
    307307    // 出力アーカイブの作成
    308     std::ostringstream oss( "", ios::out | ios::binary );
     308    std::ostringstream oss( "", std::ios::out | std::ios::binary );
    309309
    310310    bool isSuccessful = false;
     
    332332/*
    333333ビルドに時間がかかるので外しておく
    334 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadText( const string &filePath, bool isShowExceptionMessage )
     334template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadText( const std::string &filePath, bool isShowExceptionMessage )
    335335{
    336336    // 入力アーカイブの作成
     
    370370    return true;
    371371}
    372 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteText( const string &filePath, bool isShowExceptionMessage ) const
     372template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteText( const std::string &filePath, bool isShowExceptionMessage ) const
    373373{
    374374    // 出力アーカイブの作成
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp

    r513 r523  
    10991099}
    11001100
    1101 const CClass *Classes::Find( const NamespaceScopes &namespaceScopes, const string &name ) const
     1101const CClass *Classes::Find( const NamespaceScopes &namespaceScopes, const std::string &name ) const
    11021102{
    11031103    if( namespaceScopes.size() == 0 && name == "Object" ){
     
    11451145    return NULL;
    11461146}
    1147 const CClass *Classes::Find( const string &fullName ) const
     1147const CClass *Classes::Find( const std::string &fullName ) const
    11481148{
    11491149    char AreaName[VN_SIZE] = "";        //オブジェクト変数
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Compiler.cpp

    r465 r523  
    1515}
    1616
    17 bool Compiler::StringToType( const string &typeName, Type &type ){
     17bool Compiler::StringToType( const std::string &typeName, Type &type ){
    1818    type.SetIndex( -1 );
    1919
     
    8585        }
    8686
    87         const string &nextTypeName = typeName.substr( 1 );
     87        const std::string &nextTypeName = typeName.substr( 1 );
    8888
    8989        if( !StringToType( nextTypeName, type ) ){
     
    166166}
    167167
    168 const string Compiler::TypeToString( const Type &type )
     168const std::string Compiler::TypeToString( const Type &type )
    169169{
    170170    if( PTR_LEVEL( type.GetBasicType() ) ){
     
    173173        tempType.PtrLevelDown();
    174174
    175         return (string)"*" + TypeToString( tempType );
     175        return (std::string)"*" + TypeToString( tempType );
    176176    }
    177177    else if( type.IsObject() || type.IsStruct() ){
     
    202202        if( lpszTypeName )
    203203        {
    204             return (const string)lpszTypeName;
     204            return (const std::string)lpszTypeName;
    205205        }
    206206    }
     
    208208    compiler.errorMessenger.Output(1, NULL, cp);
    209209
    210     return (string)"(null)";
     210    return (std::string)"(null)";
    211211}
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Const.cpp

    r509 r523  
    4949}
    5050
    51 void Consts::Add( const NamespaceScopes &namespaceScopes, const string &name , char *Expression)
     51void Consts::Add( const NamespaceScopes &namespaceScopes, const std::string &name , char *Expression)
    5252{
    5353    _int64 i64data;
     
    6767    Put( newconst );
    6868}
    69 void Consts::Add(const NamespaceScopes &namespaceScopes, const string &name, int value){
     69void Consts::Add(const NamespaceScopes &namespaceScopes, const std::string &name, int value){
    7070    CConst *newconst = new CConst( namespaceScopes, name, value);
    7171
     
    7474}
    7575
    76 CConst *Consts::GetObjectPtr( const string &name ){
     76CConst *Consts::GetObjectPtr( const std::string &name ){
    7777    char ObjName[VN_SIZE];      //オブジェクト変数
    7878    char NestMember[VN_SIZE];   //入れ子メンバ
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Delegate.cpp

    r477 r523  
    214214            values.insert( std::map<std::string,std::string>::value_type(
    215215                "#call_method_begin#",
    216                 (string)"Function Call(" + dg.paramStr + ") As " + dg.returnTypeName
     216                (std::string)"Function Call(" + dg.paramStr + ") As " + dg.returnTypeName
    217217            ) );
    218218
     
    228228            values.insert( std::map<std::string,std::string>::value_type(
    229229                "#call_method_begin#",
    230                 (string)"Sub Call(" + dg.paramStr + ")"
     230                (std::string)"Sub Call(" + dg.paramStr + ")"
    231231            ) );
    232232
     
    244244    }
    245245/*
    246     ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\generated_delegate_code.log" ).c_str() );
     246    std::ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\generated_delegate_code.log" ).c_str() );
    247247    ofs << destSource;
    248248    ofs.close();
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Enum.cpp

    r465 r523  
    170170    BOOST_FOREACH( const EnumInfo &enumInfo, thisEnumInfoCollection )
    171171    {
    172         BOOST_FOREACH( const string &namespaceStr, enumInfo.GetNamespaceScopes() ){
     172        BOOST_FOREACH( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){
    173173            sprintf(buffer+length,"Namespace %s\n",namespaceStr.c_str());
    174174            length+=lstrlen(buffer+length);
     
    214214        length+=lstrlen(buffer+length);
    215215
    216         BOOST_FOREACH( const string &namespaceStr, enumInfo.GetNamespaceScopes() ){
     216        BOOST_FOREACH( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){
    217217            lstrcpy( buffer+length, "End Namespace\n" );
    218218            length+=lstrlen(buffer+length);
     
    230230    // ログを生成
    231231    Jenga::Common::Logger logger( Jenga::Common::Environment::GetAppDir() + "\\enum_generated.log", false );
    232     logger << buffer << endl;
     232    logger << buffer << std::endl;
    233233#endif
    234234
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Messenger.cpp

    r502 r523  
    2525
    2626    // 標準出力
    27     std::cout << message << endl;
     27    std::cout << message << std::endl;
    2828}
    2929int Messenger::GetNextErrorLine()
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Method.cpp

    r465 r523  
    103103    return false;
    104104}
    105 void Methods::Enum( const char *methodName, vector<const UserProc *> &subs ) const
     105void Methods::Enum( const char *methodName, std::vector<const UserProc *> &subs ) const
    106106{
    107107    //オブジェクトのメンバ関数の場合
     
    114114    }
    115115}
    116 void Methods::Enum( BYTE idOperatorCalc, vector<const UserProc *> &subs ) const
     116void Methods::Enum( BYTE idOperatorCalc, std::vector<const UserProc *> &subs ) const
    117117{
    118118    //オブジェクトのメンバ関数の場合
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/ObjectModule.cpp

    r522 r523  
    4848#include <boost/serialization/version.hpp>
    4949#include <boost/serialization/is_abstract.hpp>
     50#include <boost/serialization/serialization.hpp>
     51#include <boost/serialization/nvp.hpp>
     52#include <boost/serialization/export.hpp>
    5053
    5154#include <jenga/include/jenga.h>
     
    113116        boost::archive::xml_iarchive ia(ifs);
    114117#else
    115         std::ifstream ifs( filePath.c_str(), ios::in | ios::binary );
     118        std::ifstream ifs( filePath.c_str(), std::ios::in | std::ios::binary );
    116119        boost::archive::binary_iarchive ia(ifs);
    117120#endif
     
    146149        boost::archive::xml_oarchive oa(ofs);
    147150#else
    148         std::ofstream ofs( filePath.c_str(), ios::out | ios::binary );
     151        std::ofstream ofs( filePath.c_str(), std::ios::out | std::ios::binary );
    149152        boost::archive::binary_oarchive oa(ofs);
    150153#endif
     
    181184        boost::archive::xml_iarchive ia(iss);
    182185#else
    183         std::istringstream iss( str, ios::in | ios::binary );
     186        std::istringstream iss( str, std::ios::in | std::ios::binary );
    184187        boost::archive::binary_iarchive ia(iss);
    185188#endif
     
    215218        boost::archive::xml_oarchive oa(oss);
    216219#else
    217         std::ostringstream oss( "", ios::out | ios::binary );
     220        std::ostringstream oss( "", std::ios::out | std::ios::binary );
    218221        boost::archive::binary_oarchive oa(oss);
    219222#endif
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp

    r511 r523  
    458458    if( this->pParentClass && isStatic == false ){
    459459        //オブジェクトメンバの場合は、第一パラメータを_System_LocalThis引き渡し用として利用
    460         string name = "_System_LocalThis";
     460        std::string name = "_System_LocalThis";
    461461        Type type( DEF_PTR_VOID );
    462462        this->realParams.push_back( new Parameter( name, type ) );
     
    467467        //※第一パラメータ(Thisポインタありの場合は第二パラメータ)を戻り値用の参照宣言にする
    468468
    469         string name = this->GetName();
     469        std::string name = this->GetName();
    470470        if(name[0]==1&&name[1]==ESC_OPERATOR){
    471471            name="_System_ReturnValue";
     
    10041004}
    10051005
    1006 int ProcPointers::Add( const string &typeExpression )
     1006int ProcPointers::Add( const std::string &typeExpression )
    10071007{
    10081008    DWORD dwProcType = (DWORD)typeExpression[2];
    1009     const string &paramStr = typeExpression.substr( 3 );
     1009    const std::string &paramStr = typeExpression.substr( 3 );
    10101010
    10111011    Procedure::Kind kind = Procedure::Sub;
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp

    r519 r523  
    11#include "stdafx.h"
    22
    3 const string BasicSource::generateDirectiveName = "#generate";
     3const std::string BasicSource::generateDirectiveName = "#generate";
    44
    55
    66class CDefine{
    7     vector<string> names;
     7    std::vector<std::string> names;
    88public:
    99    CDefine( int majorVer );
     
    138138}
    139139BOOL CDefine::undef(char *name){
    140     vector<string>::iterator i = names.begin();
    141     BOOST_FOREACH( const string &temp, names ){
     140    std::vector<std::string>::iterator i = names.begin();
     141    BOOST_FOREACH( const std::string &temp, names ){
    142142        if( temp == name ){
    143143            names.erase( i );
     
    152152
    153153    //重複チェック
    154     BOOST_FOREACH( const string &temp, names ){
     154    BOOST_FOREACH( const std::string &temp, names ){
    155155        if( temp == name ){
    156156            return 1;
     
    390390
    391391
    392 bool Text::ReadFile( const string &filePath ){
     392bool Text::ReadFile( const std::string &filePath ){
    393393    //ファイルオープン
    394394    HANDLE hFile=CreateFile(filePath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     
    519519}
    520520
    521 bool BasicSource::ReadFile_InIncludeDirective( const string &filePath ){
     521bool BasicSource::ReadFile_InIncludeDirective( const std::string &filePath ){
    522522    if( !Text::ReadFile( filePath ) ){
    523523        return false;
     
    854854}
    855855
    856 bool BasicSource::ReadFile( const string &filePath ){
     856bool BasicSource::ReadFile( const std::string &filePath ){
    857857    if( !Text::ReadFile( filePath ) ){
    858858        return false;
     
    902902}
    903903
    904 bool BasicSource::Generate( const string &genName, const char *genBuffer ){
     904bool BasicSource::Generate( const std::string &genName, const char *genBuffer ){
    905905    const int genBufferLength = lstrlen( genBuffer );
    906906
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp

    r465 r523  
    22
    33#include <Class.h>
    4 
    5 using namespace std;
    64
    75const int Type::basicTypeList[] = {
     
    2725};
    2826
    29 const string Type::basicTypeNameList[] = {
     27const std::string Type::basicTypeNameList[] = {
    3028    "Byte",
    3129    "SByte",
     
    5351}
    5452
    55 bool Type::StringToBasicType( const string &typeName, int &basicType ){
     53bool Type::StringToBasicType( const std::string &typeName, int &basicType ){
    5654    for( int i=0; ; i++ ){
    5755        if( basicTypeList[i] == DEF_NON ){
     
    615613
    616614
    617 const string BlittableType::GetCreateStaticMethodFullName() const
     615const std::string BlittableType::GetCreateStaticMethodFullName() const
    618616{
    619617    return pClass->GetNamespaceScopes().ToString() + "." + pClass->GetName() + "._Create";
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp

    r507 r523  
    44#include <Compiler.h>
    55
    6 TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName, int nowLine )
     6TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine )
    77    : Symbol( namespaceScopes, name )
    88    , baseName( baseName )
     
    1414}
    1515/*
    16 bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const
     16bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const std::string &name ) const
    1717{
    1818    if( GetName() != name ){
     
    2121    return compiler.GetNamespaceSupporter().IsSameAreaNamespace( this->namespaceScopes, namespaceScopes );
    2222}
    23 bool TypeDef::IsEqualSymbol( const string &fullName ) const
     23bool TypeDef::IsEqualSymbol( const std::string &fullName ) const
    2424{
    2525    char AreaName[VN_SIZE] = "";        //オブジェクト変数
     
    5252TypeDefCollection::~TypeDefCollection(){
    5353}
    54 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName, int nowLine ){
     54void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ){
    5555    TypeDef typeDef( namespaceScopes, name, baseName, nowLine );
    5656    this->push_back( typeDef );
    5757}
    58 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const string &name ) const{
     58int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const std::string &name ) const{
    5959    int max = (int)(*this).size();
    6060    for( int i=0; i<max; i++ ){
     
    6565    return -1;
    6666}
    67 int TypeDefCollection::GetIndex( const string &fullName ) const{
     67int TypeDefCollection::GetIndex( const std::string &fullName ) const{
    6868    char AreaName[VN_SIZE] = "";        //オブジェクト変数
    6969    char NestName[VN_SIZE] = "";        //入れ子メンバ
     
    7373}
    7474
    75 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const string &expression, int nowLine ){
     75void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine ){
    7676    int i;
    7777    char temporary[VN_SIZE];
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Variable.cpp

    r511 r523  
    44#include <Variable.h>
    55
    6 Variable::Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData )
     6Variable::Variable( const std::string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData )
    77    : Symbol( ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( name ) )
    88    , type( type )
     
    1515{
    1616}
    17 Variable::Variable( const NamespaceScopes &namespaceScopes, const string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData )
     17Variable::Variable( const NamespaceScopes &namespaceScopes, const std::string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData )
    1818    : Symbol( namespaceScopes, name )
    1919    , type( type )
  • trunk/ab5.0/abdev/ab_common/include/Lexical/Namespace.h

    r516 r523  
    1212    template<class Archive> void serialize(Archive& ar, const unsigned int version)
    1313    {
    14         ar & boost::serialization::make_nvp("vector_string", boost::serialization::base_object<vector<string>>(*this));
     14        ar & boost::serialization::make_nvp("vector_string", boost::serialization::base_object<std::vector<std::string>>(*this));
    1515    }
    1616
  • trunk/ab5.0/abdev/abdev/BREGEXP.H

    r80 r523  
    2727
    2828typedef struct bregexp {
    29     const char *outp;           /* result string start ptr   */
    30     const char *outendp;        /* result string end ptr     */
     29    const char *outp;           /* result std::string start ptr   */
     30    const char *outendp;        /* result std::string end ptr     */
    3131    const int  splitctr;        /* split result counter     */
    3232    const char **splitp;        /* split result pointer ptr     */
  • trunk/ab5.0/abdev/abdev/Common.h

    r492 r523  
    1919#include <string>
    2020#include <fstream>
    21 
    22 using namespace std;
    2321
    2422#include "nkf_class.h"
     
    867865BOOL SetRunning(HWND hChild);
    868866BOOL IsNeedCompile(char *FileName,BOOL bDebug);
    869 string GetLastErrorString();
     867std::string GetLastErrorString();
    870868
    871869//DocumentAdvice.cpp
  • trunk/ab5.0/abdev/abdev/DocumentAdvice.cpp

    r475 r523  
    6565    else if(LOWORD(msg)==IDM_ALLSELECT) SetStatusText("Select the entire document");
    6666    else if(LOWORD(msg)==IDM_FIND) SetStatusText("Search for text in the active document");
    67     else if(LOWORD(msg)==IDM_PERMUTATION) SetStatusText("Replace occurrences of search string");
     67    else if(LOWORD(msg)==IDM_PERMUTATION) SetStatusText("Replace occurrences of search std::string");
    6868    else if(LOWORD(msg)==IDM_PROJECTVIEW) SetStatusText("Show or hide ProjectView");
    6969    else if(LOWORD(msg)==IDM_PROJECT_OPTION) SetStatusText("Set project options");
  • trunk/ab5.0/abdev/abdev/SubOperation.cpp

    r491 r523  
    15271527}
    15281528
    1529 string GetLastErrorString(){
     1529std::string GetLastErrorString(){
    15301530    char *lpMsgBuf;
    15311531
     
    15421542    );
    15431543
    1544     string result = lpMsgBuf;
     1544    std::string result = lpMsgBuf;
    15451545
    15461546    LocalFree( lpMsgBuf );
  • trunk/ab5.0/abdev/compiler_x86/CParameter.cpp

    r465 r523  
    66#include "opcode.h"
    77
    8 int ParamImpl::NewTempParameters( const string &procName, const Parameters &params, int SecondParmNum ){
     8int ParamImpl::NewTempParameters( const std::string &procName, const Parameters &params, int SecondParmNum ){
    99    if( SecondParmNum == -1 ) SecondParmNum = (int)params.size();
    1010
     
    174174}
    175175
    176 int ParamImpl::SetParameter( const string &procName, const Parameters &params, int SecondParmNum, const UserProc *pUserProc ){
     176int ParamImpl::SetParameter( const std::string &procName, const Parameters &params, int SecondParmNum, const UserProc *pUserProc ){
    177177    if( SecondParmNum == -1 ) SecondParmNum = (int)params.size();
    178178
  • trunk/ab5.0/abdev/compiler_x86/Compile_Calc.cpp

    r465 r523  
    611611    if( varType.IsObject() && compiler.GetObjectModule().meta.GetBlittableTypes().IsExist( calcType ) ){
    612612        // Blittable型をオブジェクトとして扱う
    613         vector<const UserProc *> userProcs;
     613        std::vector<const UserProc *> userProcs;
    614614        compiler.GetObjectModule().meta.GetBlittableTypes().GetClass( calcType ).GetStaticMethods().Enum( "_Create", userProcs );
    615615        if( userProcs.size() != 1 ){
  • trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp

    r484 r523  
    524524    }
    525525}
    526 void Opcode_Func_SizeOf( const string &typeName ){
     526void Opcode_Func_SizeOf( const std::string &typeName ){
    527527    Type tempType;
    528528    if( !compiler.StringToType( typeName, tempType ) ){
  • trunk/ab5.0/abdev/compiler_x86/MakePeHdr.cpp

    r519 r523  
    349349#ifdef _DEBUG
    350350    {
    351         ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\middle_code.txt" ).c_str() );
    352         ofs << basbuf << endl;
     351        std::ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\middle_code.txt" ).c_str() );
     352        ofs << basbuf << std::endl;
    353353        ofs.close();
    354354    }
  • trunk/ab5.0/abdev/compiler_x86/NumOpe.cpp

    r488 r523  
    255255    // 動的メソッドを検索
    256256    ///////////////////////////////////////////////////////////////////
    257     vector<const UserProc *> userProcs;
     257    std::vector<const UserProc *> userProcs;
    258258
    259259    char methodName[VN_SIZE], lpPtrOffset[VN_SIZE], parameter[VN_SIZE], dummy[1];
  • trunk/ab5.0/abdev/compiler_x86/Opcode.h

    r436 r523  
    197197
    198198    void ApplyDefaultParameters( const Parameters &params );
    199     bool ErrorCheck( const string &procName, const Parameters &params, int SecondParmNum = -1 );
     199    bool ErrorCheck( const std::string &procName, const Parameters &params, int SecondParmNum = -1 );
    200200    void MacroParameterSupport( const Parameters &params );
    201201    void SetStructParameter( const Type &baseType, const char *expression );
    202     int SetParameter( const string &procName, const Parameters &params, int SecondParmNum = -1, const UserProc *pUserProc = NULL );
     202    int SetParameter( const std::string &procName, const Parameters &params, int SecondParmNum = -1, const UserProc *pUserProc = NULL );
    203203
    204204    //一時オブジェクトパラメータの生成と破棄
    205     int NewTempParameters( const string &procName, const Parameters &params, int SecondParmNum = -1 );
     205    int NewTempParameters( const std::string &procName, const Parameters &params, int SecondParmNum = -1 );
    206206    void DeleteTempParameters();
    207207};
Note: See TracChangeset for help on using the changeset viewer.