|
Go to the documentation of this file.
24 #ifndef FAUDES_HELPER_H
25 #define FAUDES_HELPER_H
83 std::string ExpandString( const std::string& rString, unsigned int len);
111 Idx ToIdx( const std::string& rString);
126 std::string StringSubstitute( const std::string& rString, const std::string& rFrom, const std::string& rTo);
174 void ProcessDot( const std::string& rDotFile, const std::string& rOutFile,
175 const std::string& rOutFormat = "", const std::string& rDotExec = "dot");
193 bool RemoveFile( const std::string& rFileName);
254 std::string PrependDirectory( const std::string& rDirectory, const std::string& rFileName);
264 bool FileExists( const std::string& rFilename);
274 bool FileDelete( const std::string& rFilename);
286 bool FileCopy( const std::string& rFromFile, const std::string& rToFile);
307 std::set< std::string > ReadDirectory( const std::string& rDirectory);
328 virtual void Write( const std::string& message, long int cntnow=0, long int cntdone=0);
330 void ToFile( const std::string& filename);
344 virtual void DoWrite( const std::string& message, long int cntnow=0, long int cntdone=0);
371 static void Inc( const std::string& rTypeName);
372 static void Dec( const std::string& rTypeName);
373 static void Init( void);
374 static std::map< std::string, long int >* mspMax;
375 static std::map< std::string, long int >* mspCount;
421 void TestProtocol( const std::string& rMessage, const Type& rData, bool core= false);
434 void TestProtocol( const std::string& rMessage, bool data);
447 void TestProtocol( const std::string& rMessage, long int data);
461 void TestProtocol( const std::string& rMessage, const std::string& data);
478 #define FAUDES_TEST_DUMP(mes,dat) { std::stringstream sstr; sstr << \
479 mes << " [at " << __FILE__ << ":" << __LINE__ << "]" ; \
480 TestProtocol(__FILE__); TestProtocol(sstr.str(),dat); }
483 #define FAUDES_TEST_DIFF() { if(!TestProtocol()) { \
484 FAUDES_WRITE_CONSOLE("FAUDES_TEST_DIFF: sensed test case error in " << __FILE__); exit(1);} }
libFAUDES 2.24g
--- 2014.09.15
--- c++ api documentaion by doxygen
|