ISIS Core Library 0.7.2 (api 3.0.0)
Namespaces | Typedefs | Functions

/scr/tee1/isis/lib/Core/CoreUtils/common.hpp File Reference

#include <utility>
#include <ostream>
#include <map>
#include <string>
#include <sstream>
#include <boost/regex.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/mpl/assert.hpp>
#include <set>
#include <cmath>
#include "log.hpp"
#include "log_modules.hpp"
#include "../config.hpp"

Go to the source code of this file.

Namespaces

namespace  isis
namespace  isis::util
namespace  std
 

Streaming output for FixedMatrix.


Typedefs

typedef CoreDebug isis::util::Debug
typedef CoreLog isis::util::Runtime

Functions

template<typename HANDLE >
void isis::util::enableLog (LogLevel level)
 Set logging level for the namespace util.
template<typename HANDLE >
void isis::enableLogGlobal (LogLevel level)
 Set logging level for the namespaces util,data and image_io.
template<typename T >
bool isis::util::fuzzyEqual (T a, T b, unsigned short scale=10)
 Fuzzy comparison between floating point values.
std::string isis::util::getLastSystemError ()
template<typename T , typename InputIterator >
std::list< T > isis::util::listToList (InputIterator start, InputIterator end)
 do lexical_cast<T> on the elements of a list and return them
template<class InputIterator , typename _CharT , typename _Traits >
std::basic_ostream< _CharT,
_Traits > & 
isis::util::listToOStream (InputIterator start, InputIterator end, std::basic_ostream< _CharT, _Traits > &o, const std::string delim=",", const std::string prefix="{", const std::string suffix="}")
 Write a list of elements to a std::basic_ostream.
template<typename _CharT , typename _Traits >
std::basic_ostream< _CharT,
_Traits > & 
isis::util::listToOStream (const unsigned char *start, const unsigned char *end, std::basic_ostream< _CharT, _Traits > &o, const std::string delim=",", const std::string prefix="{", const std::string suffix="}")
template<class InputIterator >
std::string isis::util::listToString (InputIterator start, InputIterator end, const std::string delim=",", const std::string prefix="{", const std::string suffix="}")
 use listToOStream to create a string from a list
template<typename charT , typename _Tp , typename _Alloc >
basic_ostream< charT,
std::char_traits< charT > > & 
std::operator<< (basic_ostream< charT, std::char_traits< charT > > &out, const list< _Tp, _Alloc > &s)
 Streaming output for std::list.
template<typename charT , typename _Tp , typename _Alloc >
basic_ostream< charT,
std::char_traits< charT > > & 
std::operator<< (basic_ostream< charT, std::char_traits< charT > > &out, const set< _Tp, _Alloc > &s)
 Streaming output for std::set.
template<typename charT , typename _Tp , typename _Compare , typename _Alloc >
basic_ostream< charT,
std::char_traits< charT > > & 
std::operator<< (basic_ostream< charT, std::char_traits< charT > > &out, const map< std::string, _Tp, _Compare, _Alloc > &s)
 Formatted streaming output for std::map<string,...>
template<typename charT , typename _Key , typename _Tp , typename _Compare , typename _Alloc >
basic_ostream< charT,
std::char_traits< charT > > & 
std::operator<< (basic_ostream< charT, std::char_traits< charT > > &out, const map< _Key, _Tp, _Compare, _Alloc > &s)
 Streaming output for std::map.
template<typename charT , typename _FIRST , typename _SECOND >
basic_ostream< charT,
std::char_traits< charT > > & 
std::operator<< (basic_ostream< charT, std::char_traits< charT > > &out, const pair< _FIRST, _SECOND > &s)
 Streaming output for std::pair.
template<typename TARGET >
std::list< TARGET > isis::util::stringToList (std::string source, const boost::regex separator=boost::regex("[[:space:]]"))
 Simple tokenizer (regexp version).
template<typename TARGET >
std::list< TARGET > isis::util::stringToList (std::string source, const boost::regex &separator, boost::regex prefix, boost::regex postfix)
 Generic tokenizer.
template<typename TARGET , typename charT , typename traits >
std::list< TARGET > isis::util::stringToList (const std::basic_string< charT, traits > &source, charT separator)
 Very Simple tokenizer.