libFAUDES

Sections

Index

helper.cpp File Reference


Detailed Description

Helper functions.

#include "helper.h"

Namespaces

namespace  faudes

Defines

#define FAUDES_DIR_SEPARATORS   "/"

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=70)
 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::ExtractPath (const std::string &rFullName)
 Extract directory from full filename.
std::string faudes::PrependPath (const std::string &rPathName, const std::string &rFileName)
 Construct full name from directory and filename.
std::ostream * faudes::DebugStream (void)
 Get debugging stream.
void faudes::DebugToStream (std::ostream *pStream)
 Set stream for debug log.
void faudes::DebugToFile (const std::string &rFileName="tmp_faudes_debug.log")
 Set filename for debug log.

Variables

std::ostream * faudes::pDebugStream = NULL
 Stream to debug to.


Define Documentation

#define FAUDES_DIR_SEPARATORS   "/"

libFAUDES 2.13a c++ source docu by doxygen 1.5.6