F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
DirectoryStatusEnumAc.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title DirectoryStatusEnumAc.hpp
3// \author Generated by fpp-to-cpp
4// \brief hpp file for DirectoryStatus enum
5// ======================================================================
6
7#ifndef Os_DirectoryStatusEnumAc_HPP
8#define Os_DirectoryStatusEnumAc_HPP
9
10#include "FpConfig.hpp"
12#include "Fw/Types/String.hpp"
13
14namespace Os {
15
18 public Fw::Serializable
19 {
20
21 public:
22
23 // ----------------------------------------------------------------------
24 // Types
25 // ----------------------------------------------------------------------
26
28 typedef I32 SerialType;
29
55
57 typedef T t;
58
59 public:
60
61 // ----------------------------------------------------------------------
62 // Constants
63 // ----------------------------------------------------------------------
64
65 enum {
70 };
71
72 public:
73
74 // ----------------------------------------------------------------------
75 // Constructors
76 // ----------------------------------------------------------------------
77
80 {
81 this->e = OP_OK;
82 }
83
86 const T e1
87 )
88 {
89 this->e = e1;
90 }
91
94 const DirectoryStatus& obj
95 )
96 {
97 this->e = obj.e;
98 }
99
100 public:
101
102 // ----------------------------------------------------------------------
103 // Operators
104 // ----------------------------------------------------------------------
105
108 const DirectoryStatus& obj
109 );
110
113 T e1
114 );
115
117 operator T() const
118 {
119 return this->e;
120 }
121
123 bool operator==(T e1) const
124 {
125 return this->e == e1;
126 }
127
129 bool operator!=(T e1) const
130 {
131 return !(*this == e1);
132 }
133
134#ifdef BUILD_UT
135
137 friend std::ostream& operator<<(
138 std::ostream& os,
139 const DirectoryStatus& obj
140 );
141
142#endif
143
144 public:
145
146 // ----------------------------------------------------------------------
147 // Member functions
148 // ----------------------------------------------------------------------
149
151 bool isValid() const;
152
156 ) const;
157
161 );
162
163#if FW_SERIALIZABLE_TO_STRING
164
166 void toString(
167 Fw::StringBase& sb
168 ) const;
169
170#endif
171
172 public:
173
174 // ----------------------------------------------------------------------
175 // Member variables
176 // ----------------------------------------------------------------------
177
180
181 };
182
183}
184
185#endif
C++-compatible configuration header for fprime configuration.
forward declaration
FPP shadow-enum representing Os::Directory::Status.
T t
For backwards compatibility.
bool isValid() const
Check raw enum value for validity.
bool operator==(T e1) const
Equality operator.
DirectoryStatus(const DirectoryStatus &obj)
Copy constructor.
DirectoryStatus()
Constructor (default value of OP_OK)
bool operator!=(T e1) const
Inequality operator.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
I32 SerialType
The serial representation type.
DirectoryStatus & operator=(const DirectoryStatus &obj)
Copy assignment operator (object)
DirectoryStatus(const T e1)
Constructor (user-provided value)
@ NUM_CONSTANTS
The number of enumerated constants.
@ SERIALIZED_SIZE
The size of the serial representation.
@ DOESNT_EXIST
Directory doesn't exist.
@ NO_PERMISSION
No permission to read directory.
@ OP_OK
Operation was successful.
@ OTHER_ERROR
A catch-all for other errors. Have to look in implementation-specific code.
@ FILE_LIMIT
Directory has more files than can be read.
@ NOT_SUPPORTED
Operation is not supported by the current implementation.
@ NO_MORE_FILES
Directory stream has no more files.
@ ALREADY_EXISTS
Directory already exists.
@ NOT_DIR
Path is not a directory.
@ BAD_DESCRIPTOR
Directory stream descriptor is invalid.
@ NOT_OPENED
Directory hasn't been opened yet.
SerializeStatus
forward declaration for string