12#ifndef WSFATTRIBUTECONTAINER_HPP
13#define WSFATTRIBUTECONTAINER_HPP
15#include "wsf_export.h"
18#include "UtAttributeContainer.hpp"
37 virtual bool ProcessInput(UtInput& aInput);
39 static bool LoadType(UtInput& aInput);
40 static void ClearTypes();
43 void ParseAssignment(UtInput& aInput, std::string& aName, std::string& aValue);
46 bool ProcessAttribute(UtInput& aInput);
50 static bool mPrototypesRegistered;
56template<
typename SYSTEM,
typename ATTRIBUTE_TYPE>
57inline bool GetAuxValue(SYSTEM* aSystem,
const std::string& aLabel, ATTRIBUTE_TYPE& aValue)
60 if (aSystem->HasAuxData())
62 found = aSystem->GetAuxDataConst().TryGet(aLabel, aValue);
67template<
typename SYSTEM,
typename ATTRIBUTE_TYPE>
68inline bool GetAuxValue(SYSTEM& aSystem,
const std::string& aLabel, ATTRIBUTE_TYPE& aValue)
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfAttributeContainer.hpp:24
WsfAttributeContainer * Clone() const override
Definition WsfAttributeContainer.hpp:28
A set of utilities that perform generic calculations among WSF objects.
Definition WsfAttributeContainer.hpp:54
bool GetAuxValue(SYSTEM *aSystem, const std::string &aLabel, ATTRIBUTE_TYPE &aValue)
Definition WsfAttributeContainer.hpp:57