WSF
MacroEnabled.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 MACROENABLED_HPP
13#define MACROENABLED_HPP
14
15#include "usmtf_export.h"
16
17#include <map>
18#include <vector>
19
20#include "Macro.hpp"
21
22namespace usmtf
23{
27{
28public:
29 bool HasMacros() const noexcept;
30 void AddMacro(const Macro& aMacro);
31 void AddMacros(const std::vector<Macro>& aMacros);
32 const Macro* GetMacro(const std::string& aKey) const noexcept;
33 const std::vector<Macro> GetMacros() const noexcept;
34
35private:
36 // sorted for uniform export.
37 std::map<std::string, Macro> mMacroCollection;
38};
39} // namespace usmtf
40
41#endif
Definition MacroEnabled.hpp:27
void AddMacro(const Macro &aMacro)
Definition MacroEnabled.cpp:24
const Macro * GetMacro(const std::string &aKey) const noexcept
Definition MacroEnabled.cpp:37
bool HasMacros() const noexcept
Definition MacroEnabled.cpp:19
const std::vector< Macro > GetMacros() const noexcept
Definition MacroEnabled.cpp:47
void AddMacros(const std::vector< Macro > &aMacros)
Definition MacroEnabled.cpp:29
Definition Macro.hpp:22
Definition Acmid.cpp:17
Copyrights Multiple, All Rights Reserved