Changeset 505 in dev
- Timestamp:
- Apr 28, 2008, 7:28:47 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev
- Files:
-
- 2 added
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Enum.h
r407 r505 1 1 #pragma once 2 3 #include <Namespace.h>4 2 5 3 class EnumMember -
trunk/ab5.0/abdev/BasicCompiler_Common/include/NamespaceSupporter.h
r504 r505 1 1 #pragma once 2 3 #include <Namespace.h>4 2 5 3 class NamespaceSupporter -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Symbol.h
r504 r505 5 5 6 6 #include <BoostSerializationSupport.h> 7 #include <Namespace.h>8 7 9 8 using namespace std; -
trunk/ab5.0/abdev/BasicCompiler_Common/include/TypeDef.h
r272 r505 4 4 #include <string> 5 5 6 #include <Namespace.h>7 6 #include <Type.h> 8 7 #include <Symbol.h> -
trunk/ab5.0/abdev/BasicCompiler_Common/src/ObjectModule.cpp
r461 r505 41 41 42 42 #include <BoostSerializationSupport.h> 43 44 #include <abdev/ab_common/Environment.h> 45 #include <abdev/ab_common/include/Namespace.h> 46 47 using namespace ActiveBasic::Common::Lexical; 48 43 49 #include <Hashmap.h> 44 50 #include <Compiler.h> -
trunk/ab5.0/abdev/ab_common/ab_common.vcproj
r484 r505 41 41 Name="VCCLCompilerTool" 42 42 Optimization="0" 43 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost "43 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost;include" 44 44 PreprocessorDefinitions="WIN32;_DEBUG;_LIB" 45 45 MinimalRebuild="true" … … 104 104 <Tool 105 105 Name="VCCLCompilerTool" 106 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost "106 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost;include" 107 107 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 108 108 RuntimeLibrary="0" … … 165 165 Name="VCCLCompilerTool" 166 166 Optimization="0" 167 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost "167 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost;include" 168 168 PreprocessorDefinitions="WIN32;_DEBUG;_LIB" 169 169 MinimalRebuild="true" … … 228 228 <Tool 229 229 Name="VCCLCompilerTool" 230 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost "230 AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost;include" 231 231 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 232 232 RuntimeLibrary="0" … … 313 313 </FileConfiguration> 314 314 </File> 315 <Filter 316 Name="Lexical" 317 > 318 <File 319 RelativePath=".\include\Namespace.h" 320 > 321 </File> 322 </Filter> 315 323 </Filter> 316 324 <Filter … … 327 335 > 328 336 </File> 337 <Filter 338 Name="Lexical" 339 > 340 <File 341 RelativePath=".\src\Namespace.cpp" 342 > 343 </File> 344 </Filter> 329 345 </Filter> 330 346 <Filter -
trunk/ab5.0/abdev/ab_common/include/Namespace.h
r503 r505 5 5 #include <boost/foreach.hpp> 6 6 7 #include <BoostSerializationSupport.h>8 7 9 using namespace std; 8 namespace ActiveBasic{ namespace Common{ namespace Lexical{ 10 9 11 class NamespaceScopes : public vector<string> 10 11 class NamespaceScopes : public std::vector<std::string> 12 12 { 13 13 // XMLシリアライズ用 … … 22 22 public: 23 23 NamespaceScopes(){} 24 NamespaceScopes( const st ring &namespaceStr );24 NamespaceScopes( const std::string &namespaceStr ); 25 25 ~NamespaceScopes(){} 26 26 27 st ring ToString() const27 std::string ToString() const 28 28 { 29 st ring namespaceStr;30 const vector<string> &me = *this;29 std::string namespaceStr; 30 const std::vector<std::string> &me = *this; 31 31 32 32 bool isFirst = true; 33 BOOST_FOREACH( const st ring &itemStr, me ){33 BOOST_FOREACH( const std::string &itemStr, me ){ 34 34 if( isFirst ){ 35 35 isFirst = false; … … 45 45 46 46 // 等しいかをチェック 47 bool IsEqual( const st ring &name ) const47 bool IsEqual( const std::string &name ) const 48 48 { 49 49 if( ToString() == name ){ … … 82 82 }; 83 83 84 class NamespaceScopesCollection : public vector<NamespaceScopes>84 class NamespaceScopesCollection : public std::vector<NamespaceScopes> 85 85 { 86 86 // XMLシリアライズ用 … … 103 103 return false; 104 104 } 105 bool IsExist( const st ring &namespaceStr ) const105 bool IsExist( const std::string &namespaceStr ) const 106 106 { 107 107 return IsExist( NamespaceScopes( namespaceStr ) ); … … 123 123 void SplitNamespace( const char *fullName, char *namespaceStr, char *simpleName ) const; 124 124 }; 125 126 127 }}} -
trunk/ab5.0/abdev/ab_common/src/Namespace.cpp
r503 r505 4 4 5 5 6 NamespaceScopes::NamespaceScopes( const string &namespaceStr ){ 6 using namespace ActiveBasic::Common::Lexical; 7 8 9 NamespaceScopes::NamespaceScopes( const std::string &namespaceStr ){ 7 10 if( namespaceStr.size() == 0 ){ 8 11 return; 9 12 } 10 13 11 st ring::size_type i = 0;14 std::string::size_type i = 0; 12 15 while( true ){ 13 st ring::size_type i2 = namespaceStr.find( '.', i );16 std::string::size_type i2 = namespaceStr.find( '.', i ); 14 17 15 st ring tempName = namespaceStr.substr( i, i2-i );18 std::string tempName = namespaceStr.substr( i, i2-i ); 16 19 17 20 push_back( tempName ); 18 21 19 if( i2 == st ring::npos ){22 if( i2 == std::string::npos ){ 20 23 break; 21 24 } -
trunk/ab5.0/abdev/ab_common/stdafx.h
r477 r505 21 21 //boost libraries 22 22 #include <boost/foreach.hpp> 23 #include <boost/serialization/serialization.hpp> 24 #include <boost/serialization/nvp.hpp> 25 #include <boost/serialization/export.hpp> 23 26 24 27 #include <jenga/include/common/CmdLine.h> … … 29 32 30 33 #include "Environment.h" 34 35 #include <Namespace.h> -
trunk/ab5.0/abdev/compiler_x86/compiler_x86.vcproj
r484 r505 1303 1303 </File> 1304 1304 <File 1305 RelativePath="..\BasicCompiler_Common\src\Namespace.cpp"1306 >1307 </File>1308 <File1309 1305 RelativePath="..\BasicCompiler_Common\src\NamespaceSupporter.cpp" 1310 1306 > … … 1516 1512 </File> 1517 1513 <File 1518 RelativePath="..\BasicCompiler_Common\include\Namespace.h"1519 >1520 </File>1521 <File1522 1514 RelativePath="..\BasicCompiler_Common\include\NamespaceSupporter.h" 1523 1515 > -
trunk/ab5.0/abdev/compiler_x86/stdafx.h
r477 r505 21 21 //boost libraries 22 22 #include <boost/foreach.hpp> 23 #include <boost/serialization/serialization.hpp> 24 #include <boost/serialization/nvp.hpp> 25 #include <boost/serialization/export.hpp> 23 26 24 27 #include <jenga/include/common/CmdLine.h> … … 29 32 30 33 #include <abdev/ab_common/Environment.h> 34 #include <abdev/ab_common/include/Namespace.h> 35 36 using namespace ActiveBasic::Common::Lexical; 31 37 32 38 #include "../BasicCompiler_Common/common.h"
Note:
See TracChangeset
for help on using the changeset viewer.