WSF
src
wizard
usmtf
source
FreeText.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
12
#ifndef FREETEXT_HPP
13
#define FREETEXT_HPP
14
15
#include "usmtf_export.h"
16
17
#include <string>
18
19
#include "
FFIRN_Validator.hpp
"
20
#include "
RegexValidator.hpp
"
21
22
namespace
usmtf
23
{
28
class
USMTF_EXPORT
FreeText
:
public
RegexValidator
29
{
30
public
:
31
FreeText
();
32
bool
ParseAndValidate
(
const
Field
& aField)
override
;
33
const
std::string&
GetText
()
const
noexcept
;
34
35
36
protected
:
37
std::string
mFreeText
;
38
};
39
}
// namespace usmtf
40
#endif
FFIRN_Validator.hpp
RegexValidator.hpp
usmtf::Field
Definition
Field.hpp:48
usmtf::FreeText::GetText
const std::string & GetText() const noexcept
Definition
FreeText.cpp:36
usmtf::FreeText::mFreeText
std::string mFreeText
Definition
FreeText.hpp:37
usmtf::FreeText::ParseAndValidate
bool ParseAndValidate(const Field &aField) override
Definition
FreeText.cpp:25
usmtf::FreeText::FreeText
FreeText()
Definition
FreeText.cpp:19
usmtf::RegexValidator::RegexValidator
RegexValidator()=default
usmtf
Definition
Acmid.cpp:17
Copyrights Multiple, All Rights Reserved