ifw-core  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
constants.hpp
Go to the documentation of this file.
1 
9 #ifndef IFW_CTD_CONSTANTS_HPP_
10 #define IFW_CTD_CONSTANTS_HPP_
11 
12 #include <limits.h>
13 #include <stdarg.h>
14 #include <string>
15 #include <map>
16 #include <list>
17 #include <fstream>
18 #include <variant>
19 
20 #include "rad/logger.hpp"
21 #include "rad/exceptions.hpp"
22 
23 // TODO: Should document which exceptions are thrown in the Doxygen doc (@throw <ex>).
24 
25 // TODO: Use "namespace ctd::defines {" (in CTD, DIT, TCCS).
26 namespace ctd {
27  namespace defines {
28 
29  // Common file extensions.
30  const std::string EXT_FITS = "fits";
31  const std::string EXT_YAML = "yaml";
32  const std::string EXT_XML = "xml";
33  const std::string EXT_CONFIG = "config";
34 
35  // Miscelleneous constants.
36  const std::string TRUE_STR = "True";
37  const std::string FALSE_STR = "False";
38 
39  const int64_t NO_TIMEOUT = -1;
40  const std::string NO_TIMEOUT_STR = "NoTimeout";
41 
42  const int64_t ERROR = -1;
43  const std::string ERROR_STR = "Error";
44 
45  const int64_t ILLEGAL = -3;
46  const std::string ILLEGAL_STR = "Illegal";
47 
48  const int64_t INVALID = -4;
49  const std::string INVALID_STR = "__INVALID__";
50 
51  const int64_t NOT_IMPLEMENTED = -5;
52  const std::string NOT_IMPLEMENTED_STR = "NotImplemented";
53 
54  const int64_t UNDEFINED = -6;
55  const std::string UNDEFINED_STR = "__UNDEFINED__";
56 
57  const int64_t UNKNOWN = -7;
58  const std::string UNKNOWN_STR = "Unknown";
59 
60  const int64_t FAILURE = -8;
61  const std::string FAILURE_STR = "Failure";
62 
63  const int64_t SUCCESS = 0;
64  const std::string SUCCESS_STR = "Success";
65 
66  const std::string INDEFINITE_STR = "Indefinite";
67  const std::string ALL_STR = "All";
68  const std::string NONE_STR = "None";
69  const std::string COMPLETED_STR = "Completed";
70  const std::string BUSY_STR = "Busy";
71  const std::string ACTIVE_STR = "Active";
72  const std::string INITIALIZING_STR = "Initializing";
73  const std::string STORING_STR = "Storing";
74  const std::string READING_STR = "Reading";
75  const std::string LOADING_STR = "Loading";
76  const std::string PARSING_STR = "Parsing";
77  const std::string ACQUIRING_STR = "Acquiring";
78  const std::string INSTALLING_STR = "Installing";
79  const std::string ON_STR = "On";
80  const std::string OFF_STR = "Off";
81  const std::string OK_STR = "OK";
82  const std::string NOT_OK_STR = "NOK";
83 
84  }
85 }
86 
87 #endif // IFW_CTD_CONSTANTS_HPP_
const std::string BUSY_STR
Definition: constants.hpp:70
const int64_t NOT_IMPLEMENTED
Definition: constants.hpp:51
const std::string NO_TIMEOUT_STR
Definition: constants.hpp:40
const std::string LOADING_STR
Definition: constants.hpp:75
const std::string ACTIVE_STR
Definition: constants.hpp:71
const std::string ILLEGAL_STR
Definition: constants.hpp:46
const std::string ALL_STR
Definition: constants.hpp:67
const int64_t NO_TIMEOUT
Definition: constants.hpp:39
const int64_t INVALID
Definition: constants.hpp:48
const std::string READING_STR
Definition: constants.hpp:74
const std::string FAILURE_STR
Definition: constants.hpp:61
const std::string STORING_STR
Definition: constants.hpp:73
const std::string PARSING_STR
Definition: constants.hpp:76
const std::string OFF_STR
Definition: constants.hpp:80
const std::string TRUE_STR
Definition: constants.hpp:36
const std::string UNKNOWN_STR
Definition: constants.hpp:58
const std::string ACQUIRING_STR
Definition: constants.hpp:77
const std::string ERROR_STR
Definition: constants.hpp:43
const std::string INDEFINITE_STR
Definition: constants.hpp:66
const std::string EXT_XML
Definition: constants.hpp:32
const std::string INSTALLING_STR
Definition: constants.hpp:78
const std::string EXT_CONFIG
Definition: constants.hpp:33
const std::string INVALID_STR
Definition: constants.hpp:49
const std::string NONE_STR
Definition: constants.hpp:68
const std::string EXT_FITS
Definition: constants.hpp:30
const std::string EXT_YAML
Definition: constants.hpp:31
const int64_t UNDEFINED
Definition: constants.hpp:54
const int64_t FAILURE
Definition: constants.hpp:60
const int64_t SUCCESS
Definition: constants.hpp:63
const std::string FALSE_STR
Definition: constants.hpp:37
const int64_t ERROR
Definition: constants.hpp:42
const int64_t ILLEGAL
Definition: constants.hpp:45
const std::string NOT_IMPLEMENTED_STR
Definition: constants.hpp:52
const std::string COMPLETED_STR
Definition: constants.hpp:69
const int64_t UNKNOWN
Definition: constants.hpp:57
const std::string ON_STR
Definition: constants.hpp:79
const std::string SUCCESS_STR
Definition: constants.hpp:64
const std::string INITIALIZING_STR
Definition: constants.hpp:72
const std::string OK_STR
Definition: constants.hpp:81
const std::string NOT_OK_STR
Definition: constants.hpp:82
const std::string UNDEFINED_STR
Definition: constants.hpp:55