Changeset 523 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include
- Timestamp:
- May 1, 2008, 11:03:14 PM (17 years ago)
- 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 16 16 17 17 public: 18 ClassPrototype( const NamespaceScopes &namespaceScopes, const st ring &name )18 ClassPrototype( const NamespaceScopes &namespaceScopes, const std::string &name ) 19 19 : Prototype( namespaceScopes, name ) 20 20 , DynamicMethodsPrototype() … … 106 106 public: 107 107 108 CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const st ring &name )108 CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const std::string &name ) 109 109 : ClassPrototype( namespaceScopes, name ) 110 110 , importedNamespaces( importedNamespaces ) … … 501 501 virtual void Compile_System_InitializeUserTypesForBaseType(); 502 502 503 const CClass *Find( const NamespaceScopes &namespaceScopes, const st ring &name ) const;504 const CClass *Find( const st ring &fullName ) const;503 const CClass *Find( const NamespaceScopes &namespaceScopes, const std::string &name ) const; 504 const CClass *Find( const std::string &fullName ) const; 505 505 506 506 -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Const.h
r509 r523 75 75 76 76 void Add( const NamespaceScopes &namespaceScopes, char *buffer); 77 void Add( const NamespaceScopes &namespaceScopes, const st ring &name, char *Expression);78 void Add( const NamespaceScopes &namespaceScopes, const st ring &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); 79 79 80 80 private: 81 CConst *GetObjectPtr( const st ring &name );81 CConst *GetObjectPtr( const std::string &name ); 82 82 public: 83 83 … … 107 107 108 108 public: 109 ConstMacro( const NamespaceScopes &namespaceScopes, const std::string &name, const std::vector<std::string> ¶meters, const st ring &expression )109 ConstMacro( const NamespaceScopes &namespaceScopes, const std::string &name, const std::vector<std::string> ¶meters, const std::string &expression ) 110 110 : Symbol( namespaceScopes, name ) 111 111 , parameters( parameters ) -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Member.h
r510 r523 7 7 #include <Program.h> 8 8 9 using namespace std;10 11 9 class CClass; 12 10 13 11 class CMember : public MemberPrototype 14 12 { 15 st ring name;13 std::string name; 16 14 Type type; 17 15 bool isConst; 18 16 Subscripts subscripts; 19 17 20 st ring initializeExpression;21 st ring constructParameter;18 std::string initializeExpression; 19 std::string constructParameter; 22 20 23 21 // XMLシリアライズ用 … … 42 40 int source_code_address; 43 41 44 const st ring &GetName() const42 const std::string &GetName() const 45 43 { 46 44 return name; 47 45 } 48 void SetName( const st ring &name )46 void SetName( const std::string &name ) 49 47 { 50 48 this->name = name; … … 70 68 } 71 69 72 const st ring &GetInitializeExpression() const70 const std::string &GetInitializeExpression() const 73 71 { 74 72 return initializeExpression; 75 73 } 76 const st ring &GetConstructParameter() const74 const std::string &GetConstructParameter() const 77 75 { 78 76 return constructParameter; 79 77 } 80 78 81 CMember( Prototype::Accessibility accessibility, const st ring &name, const Type &newType, bool isConst, const Subscripts &subscripts, const string &initializeExpression, conststring &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 ) 82 80 : MemberPrototype( accessibility ) 83 81 , name( name ) -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Method.h
r465 r523 1 1 #pragma once 2 3 using namespace std;4 2 5 3 class UserProc; … … 221 219 BOOST_CLASS_EXPORT( StaticMethod ); 222 220 223 class Methods : public vector<CMethod *>221 class Methods : public std::vector<CMethod *> 224 222 { 225 223 // XMLシリアライズ用 … … 256 254 const CMethod *GetMethodPtr( const UserProc *pUserProc ) const; 257 255 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; 260 258 261 259 // 仮想メソッドの個数を取得 -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Procedure.h
r518 r523 57 57 58 58 public: 59 Procedure( const NamespaceScopes &namespaceScopes, const st ring &name, Kind kind, bool isCdecl )59 Procedure( const NamespaceScopes &namespaceScopes, const std::string &name, Kind kind, bool isCdecl ) 60 60 : Symbol( namespaceScopes, name ) 61 61 , kind( kind ) … … 114 114 { 115 115 public: 116 st ring _paramStr;116 std::string _paramStr; 117 117 118 118 private: … … 179 179 public: 180 180 181 UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const st ring &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 ) 182 182 : Procedure( namespaceScopes, name, kind, isCdecl ) 183 183 , importedNamespaces( importedNamespaces ) … … 434 434 class DllProc : public Procedure, public Jenga::Common::ObjectInHashmap<DllProc> 435 435 { 436 st ring dllFileName;437 st ring alias;436 std::string dllFileName; 437 std::string alias; 438 438 int lookupAddress; 439 439 … … 452 452 453 453 public: 454 DllProc( const NamespaceScopes &namespaceScopes, const st ring &name, Kind kind, bool isCdecl, const string &dllFileName, conststring &alias )454 DllProc( const NamespaceScopes &namespaceScopes, const std::string &name, Kind kind, bool isCdecl, const std::string &dllFileName, const std::string &alias ) 455 455 : Procedure( namespaceScopes, name, kind, isCdecl ) 456 456 , dllFileName( dllFileName ) … … 481 481 } 482 482 483 const st ring &GetDllFileName() const483 const std::string &GetDllFileName() const 484 484 { 485 485 return dllFileName; 486 486 } 487 const st ring &GetAlias() const487 const std::string &GetAlias() const 488 488 { 489 489 return alias; … … 542 542 }; 543 543 544 class ProcPointers : public vector<ProcPointer *>544 class ProcPointers : public std::vector<ProcPointer *> 545 545 { 546 546 // XMLシリアライズ用 … … 564 564 } 565 565 566 int Add( const st ring &typeExpression );566 int Add( const std::string &typeExpression ); 567 567 void Clear(); 568 568 void PullOutAll() -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Source.h
r520 r523 96 96 } 97 97 98 bool ReadFile( const st ring &filePath );98 bool ReadFile( const std::string &filePath ); 99 99 100 100 static void Text::SlideString(char *buffer, int slide){ … … 109 109 class BasicSource : public Text 110 110 { 111 static const st ring generateDirectiveName;111 static const std::string generateDirectiveName; 112 112 113 113 IncludedFilesRelation includedFilesRelation; … … 186 186 void RemoveComments(); 187 187 188 bool ReadFile_InIncludeDirective( const st ring &filePath );188 bool ReadFile_InIncludeDirective( const std::string &filePath ); 189 189 void DirectiveIncludeOrRequire(); 190 190 … … 229 229 void SetBuffer( const char *buffer ); 230 230 231 bool ReadFile( const st ring &filePath );232 233 bool Generate( const st ring &genName, const char *buffer );231 bool ReadFile( const std::string &filePath ); 232 233 bool Generate( const std::string &genName, const char *buffer ); 234 234 235 235 void Addition( const char *buffer ); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/TypeDef.h
r509 r523 6 6 #include <Type.h> 7 7 8 using namespace std;9 10 8 class TypeDefCollection; 11 9 … … 14 12 friend TypeDefCollection; 15 13 16 st ring baseName;14 std::string baseName; 17 15 Type baseType; 18 16 … … 30 28 31 29 public: 32 TypeDef( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine );30 TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ); 33 31 TypeDef() 34 32 { … … 38 36 } 39 37 40 const st ring &GetBaseName() const38 const std::string &GetBaseName() const 41 39 { 42 40 return baseName; … … 65 63 ~TypeDefCollection(); 66 64 67 void Add( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine );68 int GetIndex( const NamespaceScopes &namespaceScopes, const st ring &name ) const;69 int GetIndex( const st ring &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; 70 68 71 69 private: 72 void Add( const NamespaceScopes &namespaceScopes, const st ring &expression, int nowLine );70 void Add( const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine ); 73 71 public: 74 72 void CollectTypeDefs(); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Variable.h
r511 r523 57 57 58 58 public: 59 Variable( const st ring &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData );60 Variable( const NamespaceScopes &namespaceScopes, const st ring &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData );59 Variable( const std::string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ); 60 Variable( const NamespaceScopes &namespaceScopes, const std::string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ); 61 61 Variable( const Variable &var ); 62 62 Variable(); … … 185 185 }; 186 186 187 class Variables : public vector<Variable *>187 class Variables : public std::vector<Variable *> 188 188 { 189 189 protected: -
trunk/ab5.0/abdev/BasicCompiler_Common/include/logger.h
r522 r523 84 84 inline void basic_dbg_streambuf<char>::dbg_out(const char *str) 85 85 { 86 ofstream ofs( ( saveFilePath ).c_str(),ios_base::app );86 std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::app ); 87 87 ofs << "[" << (count++) << "] " << str ; 88 88 ofs.close(); … … 100 100 { 101 101 public: 102 basic_dbg_ostream( const st ring &saveFilePath, bool isOptionEnabled )102 basic_dbg_ostream( const std::string &saveFilePath, bool isOptionEnabled ) 103 103 : std::basic_ostream<Ch_T, Tr_T>(new basic_dbg_streambuf<Ch_T, Tr_T>(saveFilePath,isOptionEnabled)) 104 104 { 105 ofstream ofs( ( saveFilePath ).c_str(),ios_base::trunc );105 std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::trunc ); 106 106 ofs.close(); 107 107 } -
trunk/ab5.0/abdev/BasicCompiler_Common/include/option.h
r366 r523 37 37 38 38 #ifdef USE_TRACE 39 #define trace(s) Program::logger << s << endl39 #define trace(s) Program::logger << s << std::endl 40 40 #else 41 41 #define trace(s)
Note:
See TracChangeset
for help on using the changeset viewer.