F´ Flight Software - C/C++ Documentation  NASA-v2.0.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Fw::StructSerializable< T > Class Template Reference

#include <Fw/Types/StructSerializable.hpp>

Inheritance diagram for Fw::StructSerializable< T >:
Fw::Serializable

Public Types

enum  { SERIALIZED_SIZE = sizeof(T) + sizeof(I32) }
 

Public Member Functions

 StructSerializable ()
 
 StructSerializable (const T &val)
 
 StructSerializable (const T *val)
 
const T & operator= (const T &val)
 
virtual ~StructSerializable ()
 
void set (const T &val)
 
const T & get (void)
 
Fw::SerializeStatus serialize (Fw::SerializeBufferBase &buffer) const
 serialize contents More...
 
Fw::SerializeStatus deserialize (Fw::SerializeBufferBase &buffer)
 deserialize to contents More...
 

Additional Inherited Members

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

Detailed Description

template<class T>
class Fw::StructSerializable< T >

Definition at line 9 of file StructSerializable.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<class T >
anonymous enum
Enumerator
SERIALIZED_SIZE 

Definition at line 12 of file StructSerializable.hpp.

Constructor & Destructor Documentation

◆ StructSerializable() [1/3]

template<class T >
Fw::StructSerializable< T >::StructSerializable

Definition at line 6 of file StructSerializable.cpp.

◆ StructSerializable() [2/3]

template<class T >
Fw::StructSerializable< T >::StructSerializable ( const T &  val)

Definition at line 9 of file StructSerializable.cpp.

◆ StructSerializable() [3/3]

template<class T >
Fw::StructSerializable< T >::StructSerializable ( const T *  val)

Definition at line 13 of file StructSerializable.cpp.

◆ ~StructSerializable()

template<class T >
Fw::StructSerializable< T >::~StructSerializable
virtual

Definition at line 23 of file StructSerializable.cpp.

Member Function Documentation

◆ deserialize()

template<class T >
Fw::SerializeStatus Fw::StructSerializable< T >::deserialize ( Fw::SerializeBufferBase buffer)
virtual

deserialize to contents

Implements Fw::Serializable.

Definition at line 41 of file StructSerializable.cpp.

◆ get()

template<class T >
const T & Fw::StructSerializable< T >::get ( void  )

Definition at line 30 of file StructSerializable.cpp.

◆ operator=()

template<class T >
const T & Fw::StructSerializable< T >::operator= ( const T &  val)

Definition at line 18 of file StructSerializable.cpp.

◆ serialize()

template<class T >
Fw::SerializeStatus Fw::StructSerializable< T >::serialize ( Fw::SerializeBufferBase buffer) const
virtual

serialize contents

Implements Fw::Serializable.

Definition at line 34 of file StructSerializable.cpp.

◆ set()

template<class T >
void Fw::StructSerializable< T >::set ( const T &  val)

Definition at line 26 of file StructSerializable.cpp.


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