diag_attrfailureevents.h
Go to the documentation of this file.
1/** @file diag_attrfailureevents.h Failure and indicator events for a common failure type. */
2
3#ifndef DIAG_ATTRFAILUREEVENTS_H
4#define DIAG_ATTRFAILUREEVENTS_H
5
6#include <vector>
7#include <map>
8#include <set>
9#include "corefaudes.h"
10#include "diag_attrlabelset.h"
11#include "diag_debug.h"
12
13namespace faudes {
14
15/**
16 * Stores the failure and indicator events for a particular failure type.
17 *
18 * Note: this is formaly derived from AttributeFlags since some
19 * some applications assume AttributeFlag the minimum attribute class.
20 *
21 * @ingroup DiagnosisPlugIn
22 */
24
26
27 public:
28 /** Set of failure events. */
30 /** Set of indicator events. */
32
33 public:
34
35 /** Default constructor. */
37
38 /** Copy constructor. */
40
41 /** Default destructor. */
43
44 /**
45 * Test for default values of failure and indicator events.
46 *
47 * @return
48 * True for default value.
49 */
50 bool IsDefault(void) const;
51
52 /**
53 * Clears failure and indicator events.
54 */
55 virtual void Clear(void);
56
57 protected:
58
59 /**
60 * Copy attribute members
61 *
62 * @param rSrcAttr
63 * Source to copy from
64 */
65 void DoCopy(const AttributeFailureEvents& rSrcAttr);
66
67 /**
68 * Copy attribute members
69 *
70 * @param rSrcAttr
71 * Source to copy from
72 */
73 void DoMove(AttributeFailureEvents& rSrcAttr);
74
75 /**
76 * Test equality
77 *
78 * @param rAttr
79 * Source to copy from
80 */
81 bool DoEuqal(const AttributeFailureEvents& rAttr) const;
82
83 /**
84 * Write failure and indicator events.
85 *
86 * @param rTw
87 * Reference to TokenWriter
88 * @param rLabel
89 * Section to write.
90 * @param pContext
91 * Write context to provide contextual information
92 */
93 void DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const;
94
95 /**
96 * Write failure and indicator events.
97 *
98 * @param rTw
99 * Reference to TokenWriter
100 * @param rLabel
101 * Section to write.
102 * @param pContext
103 * Write context to provide contextual information
104 */
105 void DoXWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const;
106
107 /**
108 * Read failure and indicator events.
109 *
110 * @param rTr
111 * Reference to TokenReader
112 * @param rLabel
113 * Section to read from.
114 * @param pContext
115 * Read context to provide contextual information
116 */
117 void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0);
118
119}; // class AttributeFailureEvents
120
121
122} // namespace faudes
123
124#endif
#define FAUDES_API
#define FAUDES_TYPE_DECLARATION(ftype, ctype, cbase)
Definition cfl_types.h:918

libFAUDES 2.34d --- 2026.03.11 --- c++ api documentaion by doxygen