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

ヘッダファイルを整理中

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/src
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • 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 )
Note: See TracChangeset for help on using the changeset viewer.