WSF
usmtf::Set Class Reference

#include <Set.hpp>

Inheritance diagram for usmtf::Set:
Collaboration diagram for usmtf::Set:

Public Member Functions

 Set (const std::string &aSTF, const std::vector< Field > &aFields) noexcept
virtual ~Set ()=default
const std::string & GetType () const noexcept
 Return the Set Identifiers/Set Text Format of the set instance.
bool IsEmpty () const noexcept
int GetFieldCount () const noexcept
const FieldGetField (size_t aIndex) const
 Returns a field at a index position in the Set.
const std::string & GetFieldContent (size_t aIndex) const
 Returns the Contents of a field at specified index.
const std::string GetReconstructedSet () const noexcept
Public Member Functions inherited from usmtf::Validatable
bool IsValid () const noexcept
Public Member Functions inherited from usmtf::ErrorManager
virtual ~ErrorManager ()=default
bool HasErrors () const noexcept
void LogErrors (std::ostream &aOut) const noexcept
const std::vector< ValidationError > & GetErrors () const

Protected Attributes

std::string mSetTextFormat
std::vector< FieldmFields

Additional Inherited Members

Protected Member Functions inherited from usmtf::ErrorManager
void AddError (const ValidationError &aError) noexcept
void AddError (const std::string &aFailureReason, const std::string &aValueValidatied, const std::string &aOptionalSuggestion="") noexcept
void AddError (const std::string &aErrorMessage) noexcept
void AddErrors (const std::vector< ValidationError > &aErrors) noexcept
void ClearErrors () noexcept

Detailed Description

Set Identifiers or Set Text Format

Every Set starts with a set identifier, a keyword that identifies the set, its reason for existence and the format it supports.

Set

A set is a predetermined field or sequence of fields, preceded by a set identifier, containing all the required information concerning an aspect of the subject of a formatted message. All sets begin with a set identifier, have one or more fields, and terminate with the end-of-set marker (//).

i.e. ACMID/ACM:ATC/NAME:BBR-22/ORBIT/USE:CLSB//

There are three types of set formats:

  • linear
  • columnar
  • Free Text

For more detailed account of a set please see section 4.3.7 and 5.2.1 of the MIL-STD-6040 standard. We have a copy under 1_Mtfrules.pdf

Sets are collection of related data, the sentence of the USMTF if you will.

Every Set besides columnar sets can be considered linear. Even columnar fields are laid out in the same way.

Constructor & Destructor Documentation

◆ Set()

◆ ~Set()

virtual usmtf::Set::~Set ( )
virtualdefault

Member Function Documentation

◆ GetField()

◆ GetFieldContent()

◆ GetFieldCount()

◆ GetReconstructedSet()

const std::string usmtf::Set::GetReconstructedSet ( ) const
noexcept

Return a string that is reconstructed version of the Set as it was in the file.

References mFields.

Referenced by ~Set().

◆ GetType()

const std::string & usmtf::Set::GetType ( ) const
noexcept

Return the Set Identifiers/Set Text Format of the set instance.

References mSetTextFormat.

Referenced by usmtf::USMTF_Parser::ReadMessage(), and ~Set().

◆ IsEmpty()

bool usmtf::Set::IsEmpty ( ) const
noexcept

Returns true if the Set has no fields, false otherwise Not possible in the standard, might be useful still.

References mFields.

Referenced by ~Set().

Member Data Documentation

◆ mFields

◆ mSetTextFormat

std::string usmtf::Set::mSetTextFormat
protected

Referenced by GetType(), and Set().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved