libFAUDES

Sections

Index

cfl_helper.h File Reference

Helper functions. More...

#include <cstdlib>
#include <cstring>
#include <limits>
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <map>
#include "cfl_definitions.h"
#include "cfl_exception.h"

Go to the source code of this file.

Classes

class  faudes::ConsoleOut
 Console Out. More...
class  faudes::ObjectCount
 Debugging counter. More...

Namespaces

namespace  faudes
 

libFAUDES resides within the namespace faudes.


Defines

#define FAUDES_TEST_DUMP(mes, dat)
 Test protocol macro.

Functions

std::string faudes::ToStringInteger (long int number)
 integer to string
std::string faudes::ToStringInteger16 (long int number)
 integer to string base 16
std::string faudes::ToStringFloat (double number)
 float to string
std::string faudes::ExpandString (const std::string &rString, unsigned int len)
 Fill string with spaces up to a given length if length of the string is smaller than given length parameter.
std::string faudes::CollapsString (const std::string &rString, unsigned int len=FD_MAXCONTAINERNAME)
 Limit length of string, return head and tail of string.
Idx faudes::ToIdx (const std::string &rString)
 Convert a string to Idx.
std::string faudes::StringSubstitute (const std::string &rString, const std::string &rFrom, const std::string &rTo)
 Substitute in string.
std::string faudes::FDVersionString ()
 Return FAUDES_VERSION as std::string.
std::string faudes::FDPluginsString ()
 Return FAUDES_PLUGINS as std::string.
std::string faudes::FDContributorsString ()
 Return contributors as std::string.
void faudes::ProcessDot (const std::string &rDotFile, const std::string &rOutFile, const std::string &rOutFormat="", const std::string &rDotExec="dot")
 Convenience function: process dot file to graphics output.
std::string faudes::CreateTempFile (void)
 Create a temp file, length 0.
bool faudes::RemoveFile (const std::string &rFileName)
 Delete a file.
std::string faudes::ExtractDirectory (const std::string &rFullPath)
 Extract directory from full path.
std::string faudes::ExtractFilename (const std::string &rFullName)
 Extract file name from full path.
std::string faudes::PrependDirectory (const std::string &rDirectory, const std::string &rFileName)
 Construct full path from directory and filename.
void faudes::TestProtocol (const std::string &rSource)
 Test Protocol.
void faudes::TestProtocol (const std::string &rSource, const std::string &rMessage, const Type &rData, bool core)
void faudes::TestProtocol (const std::string &rSource, const std::string &rMessage, bool data)
void faudes::TestProtocol (const std::string &rSource, const std::string &rMessage, long int data)
void faudes::TestProtocol (const std::string &rSource, const std::string &rMessage, const std::string &rData)
void faudes::LoopCallback (bool(*pBreakFnct)(void))
 Algorithm loop callback.
void faudes::LoopCallback (void)
 Algorithm loop callback.

Variables

ConsoleOut faudes::gConsoleOut
 Globale console out object and reference.
ConsoleOut faudes::gpConsoleOut

Detailed Description

Helper functions.

Definition in file cfl_helper.h.


Define Documentation

#define FAUDES_TEST_DUMP ( mes,
dat   ) 
Value:
{ std::stringstream sstr; sstr << \
  mes << " [at " << __FILE__ << ":" << __LINE__ << "]" ; \
  TestProtocol(__FILE__,sstr.str(),dat); }

Test protocol macro.

Definition at line 329 of file cfl_helper.h.

libFAUDES 2.16b --- 2010-9-8 --- c++ source docu by doxygen 1.6.3