F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Svc::Fpy::DirectiveId Class Reference

#include <Svc/FpySequencer/DirectiveIdEnumAc.hpp>

Inheritance diagram for Svc::Fpy::DirectiveId:
Fw::Serializable

Public Types

enum  T {
  INVALID = 0, WAIT_REL = 1, WAIT_ABS = 2, GOTO = 3,
  IF = 4, NO_OP = 5, PUSH_TLM_VAL = 6, PUSH_PRM = 7,
  CONST_CMD = 8, OR = 9, AND = 10, IEQ = 11,
  INE = 12, ULT = 13, ULE = 14, UGT = 15,
  UGE = 16, SLT = 17, SLE = 18, SGT = 19,
  SGE = 20, FEQ = 21, FNE = 22, FLT = 23,
  FLE = 24, FGT = 25, FGE = 26, NOT = 27,
  FPTOSI = 28, FPTOUI = 29, SITOFP = 30, UITOFP = 31,
  ADD = 32, SUB = 33, MUL = 34, UDIV = 35,
  SDIV = 36, UMOD = 37, SMOD = 38, FADD = 39,
  FSUB = 40, FMUL = 41, FDIV = 42, FPOW = 43,
  FLOG = 44, FMOD = 45, FPEXT = 46, FPTRUNC = 47,
  SIEXT_8_64 = 48, SIEXT_16_64 = 49, SIEXT_32_64 = 50, ZIEXT_8_64 = 51,
  ZIEXT_16_64 = 52, ZIEXT_32_64 = 53, ITRUNC_64_8 = 54, ITRUNC_64_16 = 55,
  ITRUNC_64_32 = 56, EXIT = 57, ALLOCATE = 58, STORE_REL_CONST_OFFSET = 59,
  LOAD_REL = 60, PUSH_VAL = 61, DISCARD = 62, MEMCMP = 63,
  STACK_CMD = 64, PUSH_TLM_VAL_AND_TIME = 65, PUSH_TIME = 66, SET_FLAG = 67,
  GET_FLAG = 68, GET_FIELD = 69, PEEK = 70, STORE_REL = 71,
  CALL = 72, RETURN = 73, LOAD_ABS = 74, STORE_ABS = 75,
  STORE_ABS_CONST_OFFSET = 76
}
 The raw enum type. More...
 
enum  { SERIALIZED_SIZE = sizeof(SerialType), NUM_CONSTANTS = 77 }
 
typedef U8 SerialType
 The serial representation type. More...
 
typedef enum T t
 For backwards compatibility. More...
 
- Public Types inherited from Fw::Serializable
using SizeType = FwSizeType
 

Public Member Functions

 DirectiveId ()
 Constructor (default value of INVALID) More...
 
 DirectiveId (const enum T e1)
 Constructor (user-provided value) More...
 
 DirectiveId (const DirectiveId &obj)
 Copy constructor. More...
 
DirectiveIdoperator= (const DirectiveId &obj)
 Copy assignment operator (object) More...
 
DirectiveIdoperator= (enum T e1)
 Copy assignment operator (raw enum) More...
 
 operator enum T () const
 Conversion operator. More...
 
bool operator== (enum T e1) const
 Equality operator. More...
 
bool operator!= (enum T e1) const
 Inequality operator. More...
 
bool isValid () const
 Check raw enum value for validity. More...
 
Fw::SerializeStatus serializeTo (Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
 Serialize raw enum value to SerialType. More...
 
Fw::SerializeStatus deserializeFrom (Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
 Deserialize raw enum value from SerialType. More...
 
- Public Member Functions inherited from Fw::Serializable
 DEPRECATED (SerializeStatus serialize(SerialBufferBase &buffer) const, "Use serializeTo(SerialBufferBase& buffer) instead")
 
 DEPRECATED (SerializeStatus deserialize(SerialBufferBase &buffer), "Use deserializeFrom(SerialBufferBase& buffer) instead")
 

Public Attributes

enum T e
 The raw enum value. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Fw::Serializable
 Serializable ()
 Default constructor. More...
 
virtual ~Serializable ()
 Virtual destructor. More...
 

Detailed Description

Definition at line 18 of file DirectiveIdEnumAc.hpp.

Member Typedef Documentation

◆ SerialType

The serial representation type.

Definition at line 29 of file DirectiveIdEnumAc.hpp.

◆ t

For backwards compatibility.

Definition at line 113 of file DirectiveIdEnumAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERIALIZED_SIZE 

The size of the serial representation.

NUM_CONSTANTS 

The number of enumerated constants.

Definition at line 121 of file DirectiveIdEnumAc.hpp.

◆ T

The raw enum type.

Enumerator
INVALID 
WAIT_REL 
WAIT_ABS 
GOTO 
IF 
NO_OP 
PUSH_TLM_VAL 
PUSH_PRM 
CONST_CMD 
OR 
AND 
IEQ 
INE 
ULT 
ULE 
UGT 
UGE 
SLT 
SLE 
SGT 
SGE 
FEQ 
FNE 
FLT 
FLE 
FGT 
FGE 
NOT 
FPTOSI 
FPTOUI 
SITOFP 
UITOFP 
ADD 
SUB 
MUL 
UDIV 
SDIV 
UMOD 
SMOD 
FADD 
FSUB 
FMUL 
FDIV 
FPOW 
FLOG 
FMOD 
FPEXT 
FPTRUNC 
SIEXT_8_64 
SIEXT_16_64 
SIEXT_32_64 
ZIEXT_8_64 
ZIEXT_16_64 
ZIEXT_32_64 
ITRUNC_64_8 
ITRUNC_64_16 
ITRUNC_64_32 
EXIT 
ALLOCATE 
STORE_REL_CONST_OFFSET 
LOAD_REL 
PUSH_VAL 
DISCARD 
MEMCMP 
STACK_CMD 
PUSH_TLM_VAL_AND_TIME 
PUSH_TIME 
SET_FLAG 
GET_FLAG 
GET_FIELD 
PEEK 
STORE_REL 
CALL 
RETURN 
LOAD_ABS 
STORE_ABS 
STORE_ABS_CONST_OFFSET 

Definition at line 32 of file DirectiveIdEnumAc.hpp.

Constructor & Destructor Documentation

◆ DirectiveId() [1/3]

Svc::Fpy::DirectiveId::DirectiveId ( )
inline

Constructor (default value of INVALID)

Definition at line 135 of file DirectiveIdEnumAc.hpp.

◆ DirectiveId() [2/3]

Svc::Fpy::DirectiveId::DirectiveId ( const enum T  e1)
inline

Constructor (user-provided value)

Parameters
e1The raw enum value

Definition at line 141 of file DirectiveIdEnumAc.hpp.

◆ DirectiveId() [3/3]

Svc::Fpy::DirectiveId::DirectiveId ( const DirectiveId obj)
inline

Copy constructor.

Parameters
objThe source object

Definition at line 149 of file DirectiveIdEnumAc.hpp.

Member Function Documentation

◆ deserializeFrom()

Fw::SerializeStatus Svc::Fpy::DirectiveId::deserializeFrom ( Fw::SerialBufferBase buffer,
Fw::Endianness  mode = Fw::Endianness::BIG 
)
virtual

Deserialize raw enum value from SerialType.

Parameters
bufferThe serial buffer
modeEndianness of serialized buffer

Implements Fw::Serializable.

Definition at line 70 of file DirectiveIdEnumAc.cpp.

◆ isValid()

bool Svc::Fpy::DirectiveId::isValid ( ) const

Check raw enum value for validity.

Definition at line 51 of file DirectiveIdEnumAc.cpp.

◆ operator enum T()

Svc::Fpy::DirectiveId::operator enum T ( ) const
inline

Conversion operator.

Definition at line 173 of file DirectiveIdEnumAc.hpp.

◆ operator!=()

bool Svc::Fpy::DirectiveId::operator!= ( enum T  e1) const
inline

Inequality operator.

Definition at line 185 of file DirectiveIdEnumAc.hpp.

◆ operator=() [1/2]

DirectiveId & Svc::Fpy::DirectiveId::operator= ( const DirectiveId obj)

Copy assignment operator (object)

Parameters
objThe source object

Definition at line 22 of file DirectiveIdEnumAc.cpp.

◆ operator=() [2/2]

DirectiveId & Svc::Fpy::DirectiveId::operator= ( enum T  e1)

Copy assignment operator (raw enum)

Parameters
e1The enum value

Definition at line 29 of file DirectiveIdEnumAc.cpp.

◆ operator==()

bool Svc::Fpy::DirectiveId::operator== ( enum T  e1) const
inline

Equality operator.

Definition at line 179 of file DirectiveIdEnumAc.hpp.

◆ serializeTo()

Fw::SerializeStatus Svc::Fpy::DirectiveId::serializeTo ( Fw::SerialBufferBase buffer,
Fw::Endianness  mode = Fw::Endianness::BIG 
) const
virtual

Serialize raw enum value to SerialType.

Parameters
bufferThe serial buffer
modeEndianness of serialized buffer

Implements Fw::Serializable.

Definition at line 57 of file DirectiveIdEnumAc.cpp.

Member Data Documentation

◆ e

enum T Svc::Fpy::DirectiveId::e

The raw enum value.

Definition at line 237 of file DirectiveIdEnumAc.hpp.


The documentation for this class was generated from the following files: