WSF
Set.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2019 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef SET_HPP
12#define SET_HPP
13
14#include "usmtf_export.h"
15
16#include <string>
17#include <vector>
18
19#include "Field.hpp"
20#include "Validatable.hpp"
21
22namespace usmtf
23{
24
53class USMTF_EXPORT Set : public Validatable
54{
55public:
56 Set(const std::string& aSTF, const std::vector<Field>& aFields) noexcept;
57 virtual ~Set() = default;
58
60 const std::string& GetType() const noexcept;
61
64 bool IsEmpty() const noexcept;
65 int GetFieldCount() const noexcept;
66
68 const Field& GetField(size_t aIndex) const;
69
71 const std::string& GetFieldContent(size_t aIndex) const;
72
75 const std::string GetReconstructedSet() const noexcept;
76
77protected:
79 std::vector<Field> mFields;
80};
81} // namespace usmtf
82#endif
Definition Field.hpp:48
std::string mSetTextFormat
Definition Set.hpp:78
const std::string & GetType() const noexcept
Return the Set Identifiers/Set Text Format of the set instance.
Definition Set.cpp:28
std::vector< Field > mFields
Definition Set.hpp:79
Set(const std::string &aSTF, const std::vector< Field > &aFields) noexcept
Definition Set.cpp:22
virtual ~Set()=default
int GetFieldCount() const noexcept
Definition Set.cpp:38
bool IsEmpty() const noexcept
Definition Set.cpp:33
const std::string & GetFieldContent(size_t aIndex) const
Returns the Contents of a field at specified index.
Definition Set.cpp:54
const Field & GetField(size_t aIndex) const
Returns a field at a index position in the Set.
Definition Set.cpp:43
const std::string GetReconstructedSet() const noexcept
Definition Set.cpp:66
Definition Validatable.hpp:24
Template specialization for wsf::comm::Address. Allows usage of Address in std::unordered_map/set.
Definition WsfCommAddress.hpp:185
Definition Acmid.cpp:17
Copyrights Multiple, All Rights Reserved