Changeset 266 in dev for trunk/abdev/BasicCompiler_Common/include/Compiler.h
- Timestamp:
- Aug 7, 2007, 4:14:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Compiler.h
r265 r266 22 22 : pObjectModule( new ObjectModule ) 23 23 , pNowObjectModule( pObjectModule ) 24 , targetModuleType( Exe ) 24 25 { 25 26 } … … 40 41 Linker linker; 41 42 43 // オブジェクトモジュール 42 44 ObjectModule &GetObjectModule() 43 45 { … … 49 51 } 50 52 53 54 // ターゲット 55 enum TargetModuleType 56 { 57 Exe, 58 Dll, 59 StaticLibrary, 60 }; 61 62 TargetModuleType targetModuleType; 63 64 bool IsExe() const 65 { 66 if( targetModuleType == Exe ) 67 { 68 return true; 69 } 70 return false; 71 } 72 bool IsDll() const 73 { 74 if( targetModuleType == Dll ) 75 { 76 return true; 77 } 78 return false; 79 } 80 bool IsStaticLibrary() const 81 { 82 if( targetModuleType == StaticLibrary ) 83 { 84 return true; 85 } 86 return false; 87 } 88 void SetTargetModuleType( TargetModuleType targetModuleType ) 89 { 90 this->targetModuleType = targetModuleType; 91 } 92 93 94 51 95 static bool StringToType( const std::string &typeName, Type &type ); 52 96 static const std::string TypeToString( const Type &type );
Note:
See TracChangeset
for help on using the changeset viewer.