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 
13 namespace 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  /** Default destructor. */
40 
41  /**
42  * Test for default values of failure and indicator events.
43  *
44  * @return
45  * True for default value.
46  */
47  bool IsDefault(void) const;
48 
49  /**
50  * Clears failure and indicator events.
51  */
52  virtual void Clear(void);
53 
54  protected:
55 
56  /**
57  * Copy attribute members
58  *
59  * @param rSrcAttr
60  * Source to copy from
61  */
62  virtual void DoAssign(const AttributeFailureEvents& rSrcAttr);
63 
64  /**
65  * Test equality
66  *
67  * @param rAttr
68  * Source to copy from
69  */
70  virtual bool DoEuqal(const AttributeFailureEvents& rAttr) const;
71 
72  /**
73  * Write failure and indicator events.
74  *
75  * @param rTw
76  * Reference to TokenWriter
77  * @param rLabel
78  * Section to write.
79  * @param pContext
80  * Write context to provide contextual information
81  */
82  void DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const;
83 
84  /**
85  * Write failure and indicator events.
86  *
87  * @param rTw
88  * Reference to TokenWriter
89  * @param rLabel
90  * Section to write.
91  * @param pContext
92  * Write context to provide contextual information
93  */
94  void DoXWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const;
95 
96  /**
97  * Read failure and indicator events.
98  *
99  * @param rTr
100  * Reference to TokenReader
101  * @param rLabel
102  * Section to read from.
103  * @param pContext
104  * Read context to provide contextual information
105  */
106  void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0);
107 
108 }; // class AttributeFailureEvents
109 
110 
111 } // namespace faudes
112 
113 #endif
#define FAUDES_API
Interface export/import symbols: windows.
Definition: cfl_platform.h:81
#define FAUDES_TYPE_DECLARATION(ftype, ctype, cbase)
faudes type declaration macro
Definition: cfl_types.h:867
Stores the failure and indicator events for a particular failure type.
EventSet mIndicatorEvents
Set of indicator events.
~AttributeFailureEvents(void)
Default destructor.
EventSet mFailureEvents
Set of failure events.
Boolean flags Attribute.
Set of indices with symbolic names.
Definition: cfl_nameset.h:69
A TokenReader reads sequential tokens from a file or string.
A TokenWriter writes sequential tokens to a file, a string or stdout.
Base class of all libFAUDES objects that participate in the run-time interface.
Definition: cfl_types.h:239
Includes all libFAUDES headers, no plugins.
Label representation for state estimates.
Includes debugging to diagnosis plug-in.
libFAUDES resides within the namespace faudes.

libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen