Ignore:
Timestamp:
May 27, 2008, 9:17:34 PM (16 years ago)
Author:
dai_9181
Message:

・WindowInfoクラスをリファクタリング
・MdiInfoを単純配列からvectorに変更した。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common
Files:
5 edited

Legend:

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

    r608 r625  
    211211    lstrcat(temporary,path+i);
    212212    lstrcpy(path,temporary);
    213 }
    214 std::string GetApplicationBaseFullPath( const std::string &relationalPath )
    215 {
    216     char fullPath[1024];
    217     lstrcpy( fullPath, relationalPath.c_str() );
    218     GetFullPath( fullPath, Jenga::Common::Environment::GetAppDir() );
    219     return fullPath;
    220213}
    221214
  • trunk/ab5.0/abdev/BasicCompiler_Common/common.h

    r622 r625  
    217217void GetRelationalPath(char *path,char *dir);
    218218void GetFullPath( char *path, const std::string &baseDirPath );
    219 std::string GetApplicationBaseFullPath( const std::string &relationalPath );
    220219void ShowErrorLine(int LineNum,const char *FileName);
    221220BOOL GetFilePathDialog(HWND hwnd,char *filename,LPSTR Filter,LPSTR Title,BOOL bOpen);
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r581 r625  
    66class LexicalAnalyzer
    77{
    8     class SourceTemplate
    9     {
    10         std::string source;
    11     public:
    12         SourceTemplate( const std::string &filePath );
    13         ~SourceTemplate()
    14         {
    15         }
    16 
    17         std::string GetResult( const std::map<std::string,std::string> &values );
    18     };
    19 
    208public:
    219
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer.cpp

    r546 r625  
    22
    33using namespace ActiveBasic::Compiler;
    4 
    5 LexicalAnalyzer::SourceTemplate::SourceTemplate( const std::string &filePath )
    6 {
    7     Jenga::Common::File file = Jenga::Common::File( GetApplicationBaseFullPath( filePath ) );
    8     source = file.Read();
    9 }
    10 std::string LexicalAnalyzer::SourceTemplate::GetResult( const std::map<std::string,std::string> &values )
    11 {
    12     std::string result = source;
    13 
    14     std::map<std::string,std::string>::const_iterator it = values.begin();
    15     while( it != values.end() )
    16     {
    17         while( true )
    18         {
    19             std::string::size_type index = result.find( it->first );
    20             if( index == std::string::npos )
    21             {
    22                 break;
    23             }
    24 
    25             result = result.substr( 0, index ) + it->second + result.substr( index + it->first.length() );
    26         }
    27         it++;
    28     }
    29 
    30     return result;
    31 }
    32 
    334
    345bool LexicalAnalyzer::CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection )
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp

    r588 r625  
    124124    std::string destSource = "";
    125125
    126     SourceTemplate sourceTemplate( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\templates\\delegate_class.tab" );
     126    Jenga::Common::SourceTemplate sourceTemplate( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\templates\\delegate_class.tab" );
    127127
    128128    delegates.Iterator_Reset();
Note: See TracChangeset for help on using the changeset viewer.