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

The type of a packet header. More...

#include <Fw/SerializableFile/SerializableFile.hpp>

Public Types

enum  Status {
  OP_OK , FILE_OPEN_ERROR , FILE_WRITE_ERROR , FILE_READ_ERROR ,
  DESERIALIZATION_ERROR
}
 

Public Member Functions

 SerializableFile (MemAllocator *allocator, NATIVE_UINT_TYPE maxSerializedSize)
 
 ~SerializableFile ()
 
Status load (const char *fileName, Serializable &serializable)
 
Status save (const char *fileName, Serializable &serializable)
 

Detailed Description

The type of a packet header.

Definition at line 23 of file SerializableFile.hpp.

Member Enumeration Documentation

◆ Status

Enumerator
OP_OK 
FILE_OPEN_ERROR 
FILE_WRITE_ERROR 
FILE_READ_ERROR 
DESERIALIZATION_ERROR 

Definition at line 26 of file SerializableFile.hpp.

Constructor & Destructor Documentation

◆ SerializableFile()

Fw::SerializableFile::SerializableFile ( MemAllocator allocator,
NATIVE_UINT_TYPE  maxSerializedSize 
)

Definition at line 19 of file SerializableFile.cpp.

◆ ~SerializableFile()

Fw::SerializableFile::~SerializableFile ( )

Definition at line 30 of file SerializableFile.cpp.

Member Function Documentation

◆ load()

SerializableFile::Status Fw::SerializableFile::load ( const char *  fileName,
Serializable serializable 
)

Definition at line 34 of file SerializableFile.cpp.

◆ save()

SerializableFile::Status Fw::SerializableFile::save ( const char *  fileName,
Serializable serializable 
)

Definition at line 63 of file SerializableFile.cpp.


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