Loading CMakeModules/TokenList2DsnLexer.cmake +7 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,13 @@ extern const unsigned ${result}_keyword_count; using namespace DSN; // enum ${enum} is in this namespace /** * Classs ${RESULT}_LEXER * is an automatically generated class using the TokenList2DnsLexer.cmake * technology, based on keywords provided by file: * ${inputFile} */ class ${RESULT}_LEXER : public DSNLEXER { public: Loading new/CMakeLists.txt +5 −1 Original line number Diff line number Diff line Loading @@ -77,6 +77,11 @@ target_link_libraries( test_sch_lib_table ${wxWidgets_LIBRARIES} ) add_executable( test_sch_part sch_part.cpp ) target_link_libraries( test_sch_part ${wxWidgets_LIBRARIES} ) add_executable( test_lpid sch_lpid.cpp ) target_link_libraries( test_lpid ${wxWidgets_LIBRARIES} ) make_lexer( ${CMAKE_CURRENT_SOURCE_DIR}/sch_lib_table.keywords Loading @@ -84,4 +89,3 @@ make_lexer( ${CMAKE_CURRENT_SOURCE_DIR}/sch_lib_table_keywords.cpp ELT_T ) new/design.h +2 −0 Original line number Diff line number Diff line Loading @@ -443,4 +443,6 @@ public: } // namespace SCH /// @todo remove endsWithRev() in favor of EndsWithRev(), find home for it. // EOF new/sch_dir_lib_source.cpp +12 −3 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ static const char* strrstr( const char* haystack, const char* needle ) return ret; } #if 1 // @todo switch over to EndsWithRev() global static inline bool isDigit( char c ) { Loading Loading @@ -185,6 +186,8 @@ static inline const char* endsWithRev( const STRING& aPartName, char separator ) return endsWithRev( aPartName.c_str(), aPartName.c_str()+aPartName.size(), separator ); } #endif // see struct BY_REV bool BY_REV::operator() ( const STRING& s1, const STRING& s2 ) const Loading Loading @@ -587,9 +590,9 @@ void DIR_LIB_SOURCE::cacheOneDir( const STRING& aCategory ) throw( IO_ERROR ) } #if (1 || defined( TEST_DIR_LIB_SOURCE )) && defined(DEBUG) #if 1 && defined(DEBUG) int main( int argc, char** argv ) void DIR_LIB_SOURCE::Test( int argc, char** argv ) { STRINGS partnames; STRINGS sweets; Loading @@ -601,7 +604,8 @@ int main( int argc, char** argv ) // DIR_LIB_SOURCE uut( argv[1] ? argv[1] : "", "" ); DIR_LIB_SOURCE uut( argv[1] ? argv[1] : "", "useVersioning" ); // initially, only the NAME_CACHE sweets and STRING categories are loaded: // show the cached content, only the directory information is cached, // parts are cached in class LIB, not down here. uut.Show(); uut.GetCategoricalPartNames( &partnames, "lions" ); Loading Loading @@ -649,7 +653,12 @@ int main( int argc, char** argv ) { printf( "exception: %s\n", (const char*) wxConvertWX2MB( ioe.errorText ) ); } } int main( int argc, char** argv ) { DIR_LIB_SOURCE::Test( argc, argv ); return 0; } Loading new/sch_dir_lib_source.h +6 −4 Original line number Diff line number Diff line Loading @@ -132,8 +132,7 @@ class DIR_LIB_SOURCE : public LIB_SOURCE */ STRING makeFileName( const STRING& aPartName ); //protected: public: protected: /** * Constructor DIR_LIB_SOURCE( const STRING& aDirectoryPath ) Loading @@ -151,8 +150,7 @@ public: * tree, otherwise only a single version of each part is recognized, namely the * one without the ".revN[N..]" trailer. */ DIR_LIB_SOURCE( const STRING& aDirectoryPath, const STRING& aOptions = "" ) throw( IO_ERROR ); DIR_LIB_SOURCE( const STRING& aDirectoryPath, const STRING& aOptions = "" ) throw( IO_ERROR ); ~DIR_LIB_SOURCE(); Loading Loading @@ -187,6 +185,10 @@ public: * will output a debug dump of contents. */ void Show(); public: static void Test( int argc, char** argv ); #endif }; Loading Loading
CMakeModules/TokenList2DsnLexer.cmake +7 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,13 @@ extern const unsigned ${result}_keyword_count; using namespace DSN; // enum ${enum} is in this namespace /** * Classs ${RESULT}_LEXER * is an automatically generated class using the TokenList2DnsLexer.cmake * technology, based on keywords provided by file: * ${inputFile} */ class ${RESULT}_LEXER : public DSNLEXER { public: Loading
new/CMakeLists.txt +5 −1 Original line number Diff line number Diff line Loading @@ -77,6 +77,11 @@ target_link_libraries( test_sch_lib_table ${wxWidgets_LIBRARIES} ) add_executable( test_sch_part sch_part.cpp ) target_link_libraries( test_sch_part ${wxWidgets_LIBRARIES} ) add_executable( test_lpid sch_lpid.cpp ) target_link_libraries( test_lpid ${wxWidgets_LIBRARIES} ) make_lexer( ${CMAKE_CURRENT_SOURCE_DIR}/sch_lib_table.keywords Loading @@ -84,4 +89,3 @@ make_lexer( ${CMAKE_CURRENT_SOURCE_DIR}/sch_lib_table_keywords.cpp ELT_T )
new/design.h +2 −0 Original line number Diff line number Diff line Loading @@ -443,4 +443,6 @@ public: } // namespace SCH /// @todo remove endsWithRev() in favor of EndsWithRev(), find home for it. // EOF
new/sch_dir_lib_source.cpp +12 −3 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ static const char* strrstr( const char* haystack, const char* needle ) return ret; } #if 1 // @todo switch over to EndsWithRev() global static inline bool isDigit( char c ) { Loading Loading @@ -185,6 +186,8 @@ static inline const char* endsWithRev( const STRING& aPartName, char separator ) return endsWithRev( aPartName.c_str(), aPartName.c_str()+aPartName.size(), separator ); } #endif // see struct BY_REV bool BY_REV::operator() ( const STRING& s1, const STRING& s2 ) const Loading Loading @@ -587,9 +590,9 @@ void DIR_LIB_SOURCE::cacheOneDir( const STRING& aCategory ) throw( IO_ERROR ) } #if (1 || defined( TEST_DIR_LIB_SOURCE )) && defined(DEBUG) #if 1 && defined(DEBUG) int main( int argc, char** argv ) void DIR_LIB_SOURCE::Test( int argc, char** argv ) { STRINGS partnames; STRINGS sweets; Loading @@ -601,7 +604,8 @@ int main( int argc, char** argv ) // DIR_LIB_SOURCE uut( argv[1] ? argv[1] : "", "" ); DIR_LIB_SOURCE uut( argv[1] ? argv[1] : "", "useVersioning" ); // initially, only the NAME_CACHE sweets and STRING categories are loaded: // show the cached content, only the directory information is cached, // parts are cached in class LIB, not down here. uut.Show(); uut.GetCategoricalPartNames( &partnames, "lions" ); Loading Loading @@ -649,7 +653,12 @@ int main( int argc, char** argv ) { printf( "exception: %s\n", (const char*) wxConvertWX2MB( ioe.errorText ) ); } } int main( int argc, char** argv ) { DIR_LIB_SOURCE::Test( argc, argv ); return 0; } Loading
new/sch_dir_lib_source.h +6 −4 Original line number Diff line number Diff line Loading @@ -132,8 +132,7 @@ class DIR_LIB_SOURCE : public LIB_SOURCE */ STRING makeFileName( const STRING& aPartName ); //protected: public: protected: /** * Constructor DIR_LIB_SOURCE( const STRING& aDirectoryPath ) Loading @@ -151,8 +150,7 @@ public: * tree, otherwise only a single version of each part is recognized, namely the * one without the ".revN[N..]" trailer. */ DIR_LIB_SOURCE( const STRING& aDirectoryPath, const STRING& aOptions = "" ) throw( IO_ERROR ); DIR_LIB_SOURCE( const STRING& aDirectoryPath, const STRING& aOptions = "" ) throw( IO_ERROR ); ~DIR_LIB_SOURCE(); Loading Loading @@ -187,6 +185,10 @@ public: * will output a debug dump of contents. */ void Show(); public: static void Test( int argc, char** argv ); #endif }; Loading