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