Changeset 7fff6c
- Timestamp:
- Feb 14, 2011, 10:10:40 PM (15 years ago)
- Children:
- d3926b5
- Parents:
- 2d6ae0
- git-author:
- Frederik Heber <heber@…> (02/14/11 22:07:29)
- git-committer:
- Frederik Heber <heber@…> (02/14/11 22:10:40)
- Files:
-
- 4 edited
-
configure.ac (modified) (2 diffs)
-
src/Helpers/Assert.cpp (modified) (1 diff)
-
src/Helpers/Log.hpp (modified) (1 diff)
-
src/unittests/LogUnitTest.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r2d6ae0 r7fff6c 3 3 4 4 AC_PREREQ([2.65]) 5 AC_INIT([CodePatterns], [1.0. 7], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])5 AC_INIT([CodePatterns], [1.0.8], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/]) 6 6 AC_CONFIG_AUX_DIR(config) 7 7 AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp]) … … 25 25 # refer to the libtool manual, section "Updating library version information": 26 26 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html 27 AC_SUBST([CODEPATTERNS_SO_VERSION], [4:0: 2])28 AC_SUBST([CODEPATTERNS_API_VERSION], [1.0. 7])27 AC_SUBST([CODEPATTERNS_SO_VERSION], [4:0:3]) 28 AC_SUBST([CODEPATTERNS_API_VERSION], [1.0.8]) 29 29 30 30 # Checks for libraries. -
src/Helpers/Assert.cpp
r2d6ae0 r7fff6c 66 66 #endif 67 67 68 Assert::Action Assert::_my_assert::defaultAction = A sk;68 Assert::Action Assert::_my_assert::defaultAction = Abort; 69 69 std::vector<Assert::hook_t> Assert::_my_assert::hooks; 70 70 -
src/Helpers/Log.hpp
r2d6ae0 r7fff6c 16 16 #include "errorlogger.hpp" 17 17 #include "logger.hpp" 18 #include "Verbose.hpp" 19 20 #define LOG(level,msg) DoLog(level) && (Log() << Verbose(level) << msg << std::endl) 21 #define ELOG(level,msg) DoeLog(level) && (eLog() << Verbose(level) << msg << std::endl) 18 22 19 23 class logger & Log(); -
src/unittests/LogUnitTest.cpp
r2d6ae0 r7fff6c 53 53 { 54 54 logger::getInstance().setVerbosity(2); 55 // long form 55 56 DoLog(0) && (Log() << Verbose(0) << "Verbosity level is set to 2." << endl); 56 DoLog(0) && (Log() << Verbose(0) << "Test level 0" << endl); 57 DoLog(1) && (Log() << Verbose(1) << "Test level 1" << endl); 58 DoLog(2) && (Log() << Verbose(2) << "Test level 2" << endl); 59 DoLog(3) && (Log() << Verbose(3) << "Test level 3" << endl); 60 DoLog(4) && (Log() << Verbose(4) << "Test level 4" << endl); 57 // shortform via macro 58 LOG(0,"Test level 0"); 59 LOG(1,"Test level 1"); 60 LOG(2,"Test level 2"); 61 LOG(3,"Test level 3"); 62 LOG(4,"Test level 4"); 61 63 62 64 DoLog(0) && (Log() << Verbose(0) << "Output a log message." << endl); 63 65 DoeLog(0) && (eLog()<< Verbose(0) << "Output an error message." << endl); 66 CPPUNIT_ASSERT(DoLog(0)); 64 67 setVerbosity(3); 65 68 DoLog(4) && (Log() << Verbose(4) << "This should not be printed." << endl); 66 69 DoeLog(4) && (eLog()<< Verbose(4) << "This should not be printed." << endl); 70 CPPUNIT_ASSERT(!DoLog(4)); 71 CPPUNIT_ASSERT(!DoeLog(4)); 67 72 };
Note:
See TracChangeset
for help on using the changeset viewer.
