TeAgnostic Namespace Reference
[General purpose utilitary functions]


Detailed Description

This namespace contains a set of routines and classes to deal with system checking and logging facility.


Functions

bool debugModeCheck ()
template<class T>
std::string to_string (const T &data)


Function Documentation

TL_DLL bool TeAgnostic::debugModeCheck (  ) 

Checks if the code was compiled with debug mode.

Returns:
true if debug mode was used at compilation time. false if not.

Definition at line 5 of file TeAgnostic.cpp.

00006   {
00007     #ifdef TEAGN_DEBUG_MODE
00008       return true;
00009     #else
00010       return false;
00011     #endif
00012   }

template<class T>
std::string TeAgnostic::to_string ( const T &  data  )  [inline]

Data conversion to string.

Parameters:
data Data to be converted.
Returns:
The converted string.
Examples:
TePDICorrelationMatching_test.cpp, TePDIMIMatching_test.cpp, TePDIMMIOMatching_test.cpp, and TePDIOFMatching_test.cpp.

Definition at line 380 of file TeAgnostic.h.

Referenced by halfsampledImageTest(), halfsampledImageTest2(), halfsampledRotadedImageTest(), halfsampledRotadedImageWithDownsampleTest(), HRCxCCDTest(), main(), sameImageAndBoxesTest(), sameImageAndBoxesWithMaskTest(), sameImageDifBoxesTest(), sameImageGreenXBlueTest(), sameImageGreenXRedTest(), sameImageTest(), sameImageTest2(), sameImageTestWithMultiThread(), and sameInvertedImageTest().

00381      {
00382         std::stringstream temp_ss;
00383         temp_ss.setf(std::ios_base::fixed);
00384         temp_ss << data;
00385         return temp_ss.str();
00386      }


Generated on Sun Jul 29 04:12:55 2012 for TerraLib - Development Source by  doxygen 1.5.3