WSF
Field.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 FIELD_HPP
12#define FIELD_HPP
13
14#include "usmtf_export.h"
15
16#include <string>
17
18namespace usmtf
19{
39
44
47class USMTF_EXPORT Field final
48{
49public:
50 explicit Field(const std::string& aContent = std::string()) noexcept;
51 const std::string& GetContent() const noexcept;
54 const std::string& GetDescriptor() const noexcept;
55 bool HasDescriptor() const noexcept;
56
57private:
59 void SetOptionalDescriptor(const std::string& aFieldValue) noexcept;
60 std::string mContent;
61 std::string mDescriptor;
62};
63} // namespace usmtf
64#endif
Field(const std::string &aContent=std::string()) noexcept
Definition Field.cpp:19
bool HasDescriptor() const noexcept
Definition Field.cpp:34
const std::string & GetDescriptor() const noexcept
Definition Field.cpp:29
const std::string & GetContent() const noexcept
Definition Field.cpp:24
Definition Acmid.cpp:17
Copyrights Multiple, All Rights Reserved