hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxPrintStatus.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINX_PRINT_STATUS_HPP
15 #define SPHINX_PRINT_STATUS_HPP
16 
17 #include <iostream>
18 
20 
21 namespace HCE
22 {
23 namespace sphinx
24 {
25 namespace tests
26 {
27 //-----------------------------------------------------------------------------
29 {
30  enum {WIDTH=40};
31 public:
32  SphinxPrintStatus(const std::string& debugLevel, const std::string& postfix="");
34 
35  void operator()(const std::string& msg, unsigned int width=WIDTH);
37 private:
38  std::string debugLevel;
39  std::string postfix;
40 };
41 //-----------------------------------------------------------------------------
42 //-----------------------------------------------------------------------------
43 static SphinxPrintStatus printSuccess("information", " - OK"),
44  printFail("error", " - FAIL"),
45  printMessage("information", ""),
46  printError("error", "");
47 //-----------------------------------------------------------------------------
48 //-----------------------------------------------------------------------------
49 } // end namespace tests
50 } // end namespace sphinx
51 } // end namespace HCE
52 
53 #endif // SPHINX_PRINT_STATUS_HPP