#-----------------------------------------------------------------------------
TARGET_LINK_LIBRARIES(bbtk ${BBTK_LINK_LIBRARIES})
#-----------------------------------------------------------------------------
+IF(UNIX)
SET_TARGET_PROPERTIES(bbtk PROPERTIES COMPILE_FLAGS -Wall)
+ENDIF(UNIX)
#IF(UNIX)
# for gnu linker : version script used to define exported symbols
Program: bbtk
Module: $RCSfile: bbtkAny.h,v $
Language: C++
- Date: $Date: 2008/04/24 10:11:27 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/10/02 12:29:26 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
/// Returns true iff the contained type is t
inline bool contains(TypeInfo t)
{
- return ( type() == t );
+ return ( (bool)(type() == t) );
}
/// Returns true iff any of type ValueType can be held
Program: bbtk
Module: $RCSfile: bbtkException.h,v $
Language: C++
- Date: $Date: 2008/03/21 14:59:39 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/10/02 12:29:26 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::cerr << "* FILE : " <<mSourceFile<<std::endl;
}
}
+ //const std::string& GetMessage() const { return mMessage; }
const std::string& GetObject() const { return mObject; }
const std::string& GetSourceFile() const { return mSourceFile; }
- const std::string& GetMessage() const { return mMessage; }
+ const std::string& GetErrorMessage() const { return mMessage; }
private:
std::string mObject;
std::string mSourceFile;
Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/09/10 09:25:19 $
-Version: $Revision: 1.38 $
+Date: $Date: 2008/10/02 12:29:26 $
+Version: $Revision: 1.39 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
#include <cctype> // std::toupper
+#include <time.h>
namespace bbtk
{
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/10/02 07:43:20 $
- Version: $Revision: 1.71 $
+ Date: $Date: 2008/10/02 12:29:26 $
+ Version: $Revision: 1.72 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
else
{
- std::cout << "!!!HERRR bbtk"<<std::endl;
std::stringstream mess;
- mess << "* ERROR : "<<e.GetMessage()<<std::endl;
+ mess << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
if (mFileName.size()) {
mess << "* FILE : \""<<mFileName.back()<<"\""<<std::endl;
mess << "* LINE : "<<mLine.back()<<std::endl;
}
else
{
- std::cout << "!!!HERRR std"<<std::endl;
std::stringstream mess;
mess << "* ERROR : "<<e.what()<<std::endl;
if (mFileName.size()) {
}
else
{
- std::cout << "!!!HERRRunk "<<std::endl;
std::stringstream mess;
mess << "* UNDEFINED ERROR (not a bbtk nor a std exception)"
<< std::endl;
Program: bbtk
Module: $RCSfile: bbtkRTTI.h,v $
Language: C++
- Date: $Date: 2008/07/30 09:02:31 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/10/02 12:29:26 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
template <> inline std::string HumanTypeName< std::vector<TYPE> > \
(const std::vector<TYPE>&) { return "Vector"+HumanTypeName<TYPE>(); }
+ /*
BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(int8_t);
BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(uint8_t);
BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(int16_t);
BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(float);
BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(double);
BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(std::string);
+*/
/// The bbtk::TypeInfo type is a const ref on std::type_info (which can only be manipulated as such (because typeid returns const std::type_info& and type_info has all constructors private))
typedef const std::type_info& TypeInfo;
Program: bbtk
Module: $RCSfile: bbtkSystem.h,v $
Language: C++
- Date: $Date: 2008/09/10 07:25:23 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/10/02 12:29:26 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// class ClassName
-/*
-// Useless ?
-#if defined(_WIN32)
-//&& defined(BUILD_SHARED_LIBS)
- #ifdef BBTK_EXPORTS2
- #define BBTK_EXPORT2 export
- #else
- #define BBTK_EXPORT2
- #endif
-#else
- #define BBTK_EXPORT2
-#endif // defined(_WIN32) && defined(BUILD_SHARED_LIBS)
-*/
-
#if defined(_WIN32)
-// ----------------------------------------------------------------------------
-// wx headers
-// ----------------------------------------------------------------------------
-//#include "bbtkWx.h"
-
-/*
-#ifdef _USE_WXWIDGETS_
-#include "wx/wxprec.h"
-#include <wx/datetime.h>
-#ifndef WX_PRECOMP
-# include <wx/wx.h>
-#endif //WX_PRECOMP
-
-#include <wx/log.h>
-
-#ifdef __WXGTK__
-# include <locale.h>
-#endif //__WXGTK__
-
-#endif //_USE_WXWIDGETS_
-*/
-//-----------------------------------------------------------------------------
-
-
//-----------------------------------------------------------------------------