CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CCSDS::Manager Class Reference

Manages CCSDS packets and their templates. More...

#include <CCSDSManager.h>

Collaboration diagram for CCSDS::Manager:
[legend]

Public Member Functions

 Manager ()=default
 Default constructor.
 
 Manager (Packet packet)
 Constructs a Manager with a given packet template.
 
void setSyncPattern (uint32_t syncPattern)
 set sync pattern that should indicate the start of a CCSDS packet.
 
uint32_t getSyncPattern () const
 returns the currently set sync pattern.
 
void setSyncPatternEnable (bool enable)
 enable sync pattern utilization both in serialization, deserialization, read and write.
 
bool getSyncPatternEnable () const
 returns the current settings of the sync pattern enable
 
ResultBool setPacketTemplate (Packet packet)
 Sets a new packet template.
 
void setDatFieldSize (uint16_t size)
 Sets the size of the data field.
 
ResultBool setApplicationData (const std::vector< uint8_t > &data)
 Sets the application data for the packet.
 
void setAutoUpdateEnable (bool enable)
 Enables or disables automatic updates for packets.
 
void setAutoValidateEnable (bool enable)
 Enables or disables automatic validation of packets.
 
ResultBuffer getPacketTemplate ()
 Retrieves the packet template in serialized form.
 
ResultBuffer getPacketBufferAtIndex (uint16_t index)
 Retrieves a packet at the specified index.
 
std::vector< uint8_t > getPacketsBuffer () const
 Retrieves a buffer containing all the stored packets sequentially.
 
ResultBuffer getApplicationDataBuffer ()
 Retrieves the application data from the packets.
 
ResultBuffer getApplicationDataBufferAtIndex (uint16_t index)
 Retrieves the application data from a packet at the given index.
 
uint16_t getTotalPackets () const
 Retrieves the total number of packets managed.
 
bool getAutoUpdateEnable () const
 Checks if automatic updates are enabled.
 
Packet getTemplate ()
 Retrieves the packet template.
 
std::vector< PacketgetPackets ()
 Retrieves all stored packets.
 
ResultBool addPacket (Packet packet)
 Adds a new packet to the list.
 
ResultBool addPacketFromBuffer (const std::vector< uint8_t > &packetBuffer)
 Adds a new packet to the list.
 
ResultBool load (const std::vector< Packet > &packets)
 Load a vector of packets.
 
ResultBool load (const std::vector< uint8_t > &packetsBuffer)
 Load a packet or a series of packets from a buffer.
 
ResultBool read (const std::string &binaryFile)
 Load a packet or a series of packets from a binary file.
 
ResultBool write (const std::string &binaryFile) const
 Write a packet or a series of packets to a binary file.
 
ResultBool readTemplate (const std::string &filename)
 Load a template packet from a binary or configuration file.
 
void clear ()
 Clears the manager, removes all packets and template.
 
void clearPackets ()
 Clears the packets and sets the counter to 0.
 
ValidatorgetValidatorReference ()
 Returns a reverence to the manager's Validator.
 
std::vector< Packet > & getPacketsReference ()
 Returns a reference to the packets vector.
 

Private Attributes

Packet m_templatePacket {}
 The template packet used for generating new packets.
 
bool m_templateIsSet { false }
 Boolean to indicate if Template has been set or not.
 
bool m_updateEnable { true }
 bool indicating whether automatic updates are enabled (default: true).
 
bool m_validateEnable { true }
 bool indicating whether automatic validation is enabled (default: true).
 
bool m_syncPattEnable { false }
 bool indicating whether automatic sync pattern insertion is enabled (default: false).
 
std::vector< Packetm_packets
 Collection of stored packets.
 
uint16_t m_sequenceCount { 0 }
 
Validator m_validator {}
 
uint32_t m_syncPattern {0x1ACFFC1D}
 

Detailed Description

Manages CCSDS packets and their templates.

This class provides an interface for managing CCSDS packets, allowing users to set a packet template, configure data field sizes, and retrieve application data and packet instances.

Definition at line 18 of file CCSDSManager.h.

Constructor & Destructor Documentation

◆ Manager() [1/2]

CCSDS::Manager::Manager ( )
default

Default constructor.

◆ Manager() [2/2]

CCSDS::Manager::Manager ( Packet  packet)
inlineexplicit

Constructs a Manager with a given packet template.

Parameters
packetThe packet template to be used as a reference.

Definition at line 30 of file CCSDSManager.h.

30 : m_templatePacket(std::move(packet)) {
31 m_templateIsSet = true;
33 m_validator.configure(true, true, true);
34
35 }
bool m_templateIsSet
Boolean to indicate if Template has been set or not.
Packet m_templatePacket
The template packet used for generating new packets.
Validator m_validator
void configure(bool validatePacketCoherence, bool validateSequenceCount, bool validateAgainstTemplate)
Configures validation options.
void setTemplatePacket(const Packet &templatePacket)
Sets the template packet for validation.
Here is the call graph for this function:

Member Function Documentation

◆ addPacket()

CCSDS::ResultBool CCSDS::Manager::addPacket ( Packet  packet)

Adds a new packet to the list.

Parameters
packetThe new packet to be added.

Definition at line 149 of file CCSDSManager.cpp.

149 {
150
152 if (!m_templateIsSet) {
153 m_validator.configure(true, true, false);
154 }
155 RET_IF_ERR_MSG(m_validator.validate(packet), ErrorCode::VALIDATION_FAILURE, "packet is not valid");
156 }
157 packet.setUpdatePacketEnable(m_updateEnable);
158 m_packets.push_back(std::move(packet));
159 return true;
160}
#define RET_IF_ERR_MSG(condition, errorCode, message)
Macro to return an error with an error message if a condition is met.
std::vector< Packet > m_packets
Collection of stored packets.
bool m_validateEnable
bool indicating whether automatic validation is enabled (default: true).
bool m_updateEnable
bool indicating whether automatic updates are enabled (default: true).
bool validate(const Packet &packet)
Validates a given packet.
@ VALIDATION_FAILURE
Validation Failure.
Definition CCSDSResult.h:29
Here is the call graph for this function:

◆ addPacketFromBuffer()

CCSDS::ResultBool CCSDS::Manager::addPacketFromBuffer ( const std::vector< uint8_t > &  packetBuffer)

Adds a new packet to the list.

Parameters
packetBufferThe new packet to be added in the form of a buffer.

Definition at line 162 of file CCSDSManager.cpp.

162 {
163 Packet packet;
164 FORWARD_RESULT(packet.deserialize(packetBuffer));
165 FORWARD_RESULT(addPacket(packet));
166 return true;
167}
#define FORWARD_RESULT(result)
Macro to return a result as-is (for functions returning Result<T>).
ResultBool addPacket(Packet packet)
Adds a new packet to the list.
Here is the call graph for this function:

◆ clear()

void CCSDS::Manager::clear ( )

Clears the manager, removes all packets and template.

Definition at line 239 of file CCSDSManager.cpp.

239 {
240 clearPackets();
241 m_templateIsSet = false;
243}
void clearPackets()
Clears the packets and sets the counter to 0.

◆ clearPackets()

void CCSDS::Manager::clearPackets ( )

Clears the packets and sets the counter to 0.

Definition at line 245 of file CCSDSManager.cpp.

245 {
246 m_packets.clear();
247 m_sequenceCount = 0;
249}
uint16_t m_sequenceCount
void clear()
Clears the validator, resets counter.

◆ getApplicationDataBuffer()

CCSDS::ResultBuffer CCSDS::Manager::getApplicationDataBuffer ( )

Retrieves the application data from the packets.

Returns
A ResultBuffer containing the application data.

Definition at line 119 of file CCSDSManager.cpp.

119 {
120 RET_IF_ERR_MSG(m_packets.empty(), ErrorCode::NO_DATA, "Cannot get Application data, no packets have been set.");
121 std::vector<uint8_t> data;
122
123 for (int index = 0; index < m_packets.size(); index++) {
124 if (m_validateEnable) {
125 const std::string errorMessage = "Validation failure for packet at index" + std::to_string(index);
127 errorMessage);
128 }
129 auto applicationData = m_packets[index].getApplicationDataBytes();
130 data.insert(data.end(), applicationData.begin(), applicationData.end());
131 }
132 return data;
133}
@ NO_DATA
No data available.
Definition CCSDSResult.h:22
Here is the caller graph for this function:

◆ getApplicationDataBufferAtIndex()

CCSDS::ResultBuffer CCSDS::Manager::getApplicationDataBufferAtIndex ( uint16_t  index)

Retrieves the application data from a packet at the given index.

Parameters
indexThe index of the packet.
Returns
A ResultBuffer containing the application data of the selected packet.

Definition at line 135 of file CCSDSManager.cpp.

135 {
136 RET_IF_ERR_MSG(index < 0 || index >= m_packets.size(), ErrorCode::INVALID_DATA,
137 "Cannot get Application data, index is out of bounds");
138 return m_packets[index].getApplicationDataBytes();
139}
@ INVALID_DATA
Data is invalid.
Definition CCSDSResult.h:23

◆ getAutoUpdateEnable()

bool CCSDS::Manager::getAutoUpdateEnable ( ) const
inline

Checks if automatic updates are enabled.

Returns
True if auto-update is enabled, false otherwise.

Definition at line 152 of file CCSDSManager.h.

152{ return m_updateEnable; }

◆ getPacketBufferAtIndex()

CCSDS::ResultBuffer CCSDS::Manager::getPacketBufferAtIndex ( uint16_t  index)

Retrieves a packet at the specified index.

Parameters
indexThe index of the packet to retrieve.
Returns
A ResultBuffer containing the requested packet.

Definition at line 92 of file CCSDSManager.cpp.

92 {
93 RET_IF_ERR_MSG(index < 0 || index >= m_packets.size(), ErrorCode::INVALID_DATA,
94 "Cannot get packet, index is out of bounds");
95 if (m_validateEnable) {
96 m_packets[index].update();
97 const std::string errorMessage = "Validation failure for packet at index " + std::to_string(index);
99 errorMessage);
100 }
101 return m_packets[index].serialize();
102}

◆ getPackets()

std::vector< CCSDS::Packet > CCSDS::Manager::getPackets ( )

Retrieves all stored packets.

Returns
A vector containing all managed packets.

Definition at line 145 of file CCSDSManager.cpp.

145 {
146 return m_packets;
147}

◆ getPacketsBuffer()

std::vector< uint8_t > CCSDS::Manager::getPacketsBuffer ( ) const

Retrieves a buffer containing all the stored packets sequentially.

Returns
A vector of bytes containing the packets data.

Definition at line 104 of file CCSDSManager.cpp.

104 {
105 std::vector<uint8_t> buffer;
106 for (auto packet : m_packets) {
107 if (m_syncPattEnable) {
108 buffer.push_back(m_syncPattern >> 24 & 0xff);
109 buffer.push_back(m_syncPattern >> 16 & 0xff);
110 buffer.push_back(m_syncPattern >> 8 & 0xff);
111 buffer.push_back(m_syncPattern & 0xff);
112 }
113 std::vector<uint8_t> packetBuffer = packet.serialize();
114 buffer.insert(buffer.end(), packetBuffer.begin(), packetBuffer.end());
115 }
116 return buffer;
117}
bool m_syncPattEnable
bool indicating whether automatic sync pattern insertion is enabled (default: false).
uint32_t m_syncPattern
Here is the caller graph for this function:

◆ getPacketsReference()

std::vector< Packet > & CCSDS::Manager::getPacketsReference ( )
inline

Returns a reference to the packets vector.

Note
changing the data will affect the packets stored in the manager.

Definition at line 239 of file CCSDSManager.h.

239{ return m_packets; }
Here is the caller graph for this function:

◆ getPacketTemplate()

CCSDS::ResultBuffer CCSDS::Manager::getPacketTemplate ( )

Retrieves the packet template in serialized form.

Returns
A ResultBuffer containing the serialized packet template.

Definition at line 86 of file CCSDSManager.cpp.

86 {
87 auto data = m_templatePacket.serialize();
88 RET_IF_ERR_MSG(data.empty(), ErrorCode::NO_DATA, "Cannot get Packet template data, data is empty (impossible)"); // possibly redundant.
89 return data;
90}
std::vector< uint8_t > serialize()
Retrieves the full packet as a vector of bytes.

◆ getSyncPattern()

uint32_t CCSDS::Manager::getSyncPattern ( ) const

returns the currently set sync pattern.

Returns
uint32_t

Definition at line 9 of file CCSDSManager.cpp.

9{ return m_syncPattern; }
Here is the caller graph for this function:

◆ getSyncPatternEnable()

bool CCSDS::Manager::getSyncPatternEnable ( ) const

returns the current settings of the sync pattern enable

Returns
bool

Definition at line 13 of file CCSDSManager.cpp.

13{ return m_syncPattEnable; }
Here is the caller graph for this function:

◆ getTemplate()

Packet CCSDS::Manager::getTemplate ( )
inline

Retrieves the packet template.

Returns
The stored packet template.

Definition at line 159 of file CCSDSManager.h.

159{ return m_templatePacket; };
Here is the caller graph for this function:

◆ getTotalPackets()

uint16_t CCSDS::Manager::getTotalPackets ( ) const

Retrieves the total number of packets managed.

Returns
The total number of stored packets.

Definition at line 141 of file CCSDSManager.cpp.

141 {
142 return m_packets.size();
143}
Here is the caller graph for this function:

◆ getValidatorReference()

Validator & CCSDS::Manager::getValidatorReference ( )
inline

Returns a reverence to the manager's Validator.

Note
changing settings of this instance will affect the manager

Definition at line 232 of file CCSDSManager.h.

232{ return m_validator; }

◆ load() [1/2]

CCSDS::ResultBool CCSDS::Manager::load ( const std::vector< Packet > &  packets)

Load a vector of packets.

Parameters
packetsThe packets

Definition at line 170 of file CCSDSManager.cpp.

170 {
171
172 for (const auto& packet: packets) {
173 FORWARD_RESULT(addPacket(packet));
174 }
175 return true;
176}
Here is the caller graph for this function:

◆ load() [2/2]

CCSDS::ResultBool CCSDS::Manager::load ( const std::vector< uint8_t > &  packetsBuffer)

Load a packet or a series of packets from a buffer.

Parameters
packetsBufferThe buffer holding packet data.

Definition at line 178 of file CCSDSManager.cpp.

178 {
179 RET_IF_ERR_MSG(packetsBuffer.size() < 8, ErrorCode::INVALID_DATA, "invalid packet buffer size");
180 int offset{0};
181 while (offset < packetsBuffer.size()) {
182 std::vector<uint8_t> headerData;
183 if (m_syncPattEnable) {
184 const uint32_t value = (static_cast<uint32_t>(packetsBuffer[offset]) << 24) |
185 (static_cast<uint32_t>(packetsBuffer[offset+1]) << 16) |
186 (static_cast<uint32_t>(packetsBuffer[offset+2]) << 8) |
187 (static_cast<uint32_t>(packetsBuffer[offset+3]));
188 RET_IF_ERR_MSG(value != m_syncPattern, ErrorCode::INVALID_DATA, "Sync Pattern mismatch.");
189 offset += 4;
190 }
191 headerData.clear();
192 copy_n(packetsBuffer.begin() + offset, 6, std::back_inserter(headerData));
193 Header header;
194 FORWARD_RESULT( header.deserialize(headerData));
195
196 const uint16_t packetSize = header.getDataLength() + 8;
197 std::vector<uint8_t>packetData;
198 packetData.clear();
199 copy_n(packetsBuffer.begin() + offset, packetSize, std::back_inserter(packetData));
201 offset += packetSize;
202 }
203 return true;
204}
ResultBool addPacketFromBuffer(const std::vector< uint8_t > &packetBuffer)
Adds a new packet to the list.
Here is the call graph for this function:

◆ read()

CCSDS::ResultBool CCSDS::Manager::read ( const std::string &  binaryFile)

Load a packet or a series of packets from a binary file.

Parameters
binaryFilepath to the file holding packet data.

Definition at line 206 of file CCSDSManager.cpp.

206 {
207 std::vector<uint8_t> buffer;
208 ASSIGN_CP(buffer, readBinaryFile(binaryFile));
209 FORWARD_RESULT(load(buffer));
210 return true;
211}
#define ASSIGN_CP(var, result)
Macro to assign a result value to a variable or return an error by copy.
CCSDS::ResultBuffer readBinaryFile(const std::string &filename)
Read a specified binary file and return its contents as a buffer.
ResultBool load(const std::vector< Packet > &packets)
Load a vector of packets.
Here is the call graph for this function:

◆ readTemplate()

CCSDS::ResultBool CCSDS::Manager::readTemplate ( const std::string &  filename)

Load a template packet from a binary or configuration file.

Parameters
filenamepath to the file holding template.

Definition at line 219 of file CCSDSManager.cpp.

219 {
220 Packet templatePacket;
221
222 if (stringEndsWith(filename, ".bin")) {
223 std::vector<uint8_t> buffer;
224 ASSIGN_CP(buffer, readBinaryFile(filename));
225 FORWARD_RESULT(templatePacket.deserialize(buffer));
226 }else if (stringEndsWith(filename, ".cfg")) {
227 Config cfg;
228 FORWARD_RESULT(cfg.load(filename));
229 std::vector<uint8_t> buffer;
230 ASSIGN_CP(buffer,cfg.get<std::vector<uint8_t>>("template_data"));
231 FORWARD_RESULT(templatePacket.deserialize(buffer));
232 } else {
233 return Error{INVALID_DATA,"Cannot load template, invalid file provided [supported extensions [.bin, .cfg]]"};
234 }
235 FORWARD_RESULT(setPacketTemplate(templatePacket));
236 return true;
237}
bool stringEndsWith(const std::string &str, const std::string &suffix)
Tests if str ends with suffix.
ResultBool setPacketTemplate(Packet packet)
Sets a new packet template.
Parses and stores config values from custom file format.
Definition CCSDSUtils.h:145
CCSDS::ResultBool load(const std::string &filename)
Load config file.
CCSDS::Result< T > get(const std::string &key) const
Get value by key and type.
Definition CCSDSUtils.h:154
Here is the call graph for this function:

◆ setApplicationData()

CCSDS::ResultBool CCSDS::Manager::setApplicationData ( const std::vector< uint8_t > &  data)

Sets the application data for the packet.

Parameters
dataThe application data as a vector of bytes.
Returns
ResultBool indicating success or failure.

Definition at line 29 of file CCSDSManager.cpp.

29 {
30 RET_IF_ERR_MSG(data.empty(), ErrorCode::NO_DATA, "Cannot set Application data, Provided data is empty");
31 RET_IF_ERR_MSG(!m_templateIsSet, ErrorCode::INVALID_HEADER_DATA, "Cannot set Application data, No template has been set");
32
33 const auto maxBytesPerPacket = m_templatePacket.getDataFieldMaximumSize();
34 const auto dataBytesSize = data.size();
35
36 if (!m_packets.empty()) {
37 m_packets.clear();
38 }
39
40 int i = 0;
41 auto remainderBytes = static_cast<int>(dataBytesSize);
42 auto sequenceFlag = UNSEGMENTED;
43 while (i < dataBytesSize) {
44 Packet newPacket = m_templatePacket;
45 std::vector<uint8_t> tmp;
46 if (remainderBytes > maxBytesPerPacket) {
47 tmp.insert(tmp.end(), data.begin() + i, data.begin() + i + maxBytesPerPacket);
48 remainderBytes -= maxBytesPerPacket;
49 if (i == 0) {
50 sequenceFlag = FIRST_SEGMENT;
52 } else {
53 sequenceFlag = CONTINUING_SEGMENT;
54 }
55 i += maxBytesPerPacket;
56 FORWARD_RESULT(newPacket.setApplicationData(tmp));
57 newPacket.setSequenceFlags(sequenceFlag);
58 FORWARD_RESULT(newPacket.setSequenceCount(m_sequenceCount));
59 } else {
60 tmp.insert(tmp.end(), data.begin() + i, data.begin() + i + remainderBytes);
61 i += remainderBytes;
62 if (sequenceFlag != UNSEGMENTED) {
63 newPacket.setSequenceFlags(LAST_SEGMENT);
64 FORWARD_RESULT(newPacket.setSequenceCount(m_sequenceCount));
65 }
66 FORWARD_RESULT(newPacket.setApplicationData(tmp));
67 }
68 newPacket.setUpdatePacketEnable(m_updateEnable);
69 m_packets.push_back(std::move(newPacket));
71 }
72 return true;
73}
uint16_t getDataFieldMaximumSize()
returns the maximum data field size
@ LAST_SEGMENT
10 Last segment of a multi-frame packet.
Definition CCSDSHeader.h:22
@ UNSEGMENTED
11 Complete packet in a single frame.
Definition CCSDSHeader.h:23
@ CONTINUING_SEGMENT
00 Intermediate segment of a packet.
Definition CCSDSHeader.h:20
@ FIRST_SEGMENT
01 First segment of a new packet.
Definition CCSDSHeader.h:21
@ INVALID_HEADER_DATA
Header data is invalid.
Definition CCSDSResult.h:24
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAutoUpdateEnable()

void CCSDS::Manager::setAutoUpdateEnable ( bool  enable)

Enables or disables automatic updates for packets.

Parameters
enableSet to true to enable automatic updates, false to disable.

Definition at line 75 of file CCSDSManager.cpp.

75 {
76 m_updateEnable = enable;
77 for (auto &packet: m_packets) {
78 packet.setUpdatePacketEnable(enable);
79 }
80}

◆ setAutoValidateEnable()

void CCSDS::Manager::setAutoValidateEnable ( bool  enable)

Enables or disables automatic validation of packets.

Parameters
enableSet to true to enable automatic validation, false to disable.

Definition at line 82 of file CCSDSManager.cpp.

82 {
83 m_validateEnable = enable;
84}
Here is the caller graph for this function:

◆ setDatFieldSize()

void CCSDS::Manager::setDatFieldSize ( uint16_t  size)

Sets the size of the data field.

Parameters
sizeThe new data field size in bytes.

Definition at line 25 of file CCSDSManager.cpp.

25 {
27}
void setDataFieldSize(uint16_t size)
Sets the maximum data packet size for the CCSDS DataField.
Here is the caller graph for this function:

◆ setPacketTemplate()

CCSDS::ResultBool CCSDS::Manager::setPacketTemplate ( Packet  packet)

Sets a new packet template.

Parameters
packetThe new packet template to use.

Definition at line 15 of file CCSDSManager.cpp.

15 {
16 RET_IF_ERR_MSG(m_templateIsSet, ErrorCode::SOMETHING_WENT_WRONG, "Cannot set Template as it is already set, please clear Manager first");
17 m_templatePacket = std::move(packet);
19 m_validator.configure(true, true, true);
20 m_validateEnable = true;
21 m_templateIsSet = true;
22 return true;
23}
@ SOMETHING_WENT_WRONG
General failure.
Definition CCSDSResult.h:30
Here is the caller graph for this function:

◆ setSyncPattern()

void CCSDS::Manager::setSyncPattern ( uint32_t  syncPattern)

set sync pattern that should indicate the start of a CCSDS packet.

insertion is disabled by default. use setSyncPatternEnable to enable.

Parameters
syncPatternuint32_t (default 0x1ACFFC1D)

Definition at line 7 of file CCSDSManager.cpp.

7{ m_syncPattern = syncPattern; }
Here is the caller graph for this function:

◆ setSyncPatternEnable()

void CCSDS::Manager::setSyncPatternEnable ( bool  enable)

enable sync pattern utilization both in serialization, deserialization, read and write.

Parameters
enablebool (default false)

Definition at line 11 of file CCSDSManager.cpp.

11{ m_syncPattEnable = enable; }
Here is the caller graph for this function:

◆ write()

CCSDS::ResultBool CCSDS::Manager::write ( const std::string &  binaryFile) const

Write a packet or a series of packets to a binary file.

Parameters
binaryFiledestination file path for packets data.

Definition at line 213 of file CCSDSManager.cpp.

213 {
215 return true;
216}
CCSDS::ResultBool writeBinaryFile(const std::vector< uint8_t > &data, const std::string &filename)
This function takes in a buffer of data and a file name.
std::vector< uint8_t > getPacketsBuffer() const
Retrieves a buffer containing all the stored packets sequentially.
Here is the call graph for this function:

Member Data Documentation

◆ m_packets

std::vector<Packet> CCSDS::Manager::m_packets
private

Collection of stored packets.

Definition at line 247 of file CCSDSManager.h.

◆ m_sequenceCount

uint16_t CCSDS::Manager::m_sequenceCount { 0 }
private

Definition at line 248 of file CCSDSManager.h.

248{ 0 };

◆ m_syncPattEnable

bool CCSDS::Manager::m_syncPattEnable { false }
private

bool indicating whether automatic sync pattern insertion is enabled (default: false).

Definition at line 246 of file CCSDSManager.h.

246{ false };

◆ m_syncPattern

uint32_t CCSDS::Manager::m_syncPattern {0x1ACFFC1D}
private

Definition at line 251 of file CCSDSManager.h.

251{0x1ACFFC1D};

◆ m_templateIsSet

bool CCSDS::Manager::m_templateIsSet { false }
private

Boolean to indicate if Template has been set or not.

Definition at line 243 of file CCSDSManager.h.

243{ false };

◆ m_templatePacket

Packet CCSDS::Manager::m_templatePacket {}
private

The template packet used for generating new packets.

Definition at line 242 of file CCSDSManager.h.

242{};

◆ m_updateEnable

bool CCSDS::Manager::m_updateEnable { true }
private

bool indicating whether automatic updates are enabled (default: true).

Definition at line 244 of file CCSDSManager.h.

244{ true };

◆ m_validateEnable

bool CCSDS::Manager::m_validateEnable { true }
private

bool indicating whether automatic validation is enabled (default: true).

Definition at line 245 of file CCSDSManager.h.

245{ true };

◆ m_validator

Validator CCSDS::Manager::m_validator {}
private

Definition at line 250 of file CCSDSManager.h.

250{};

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