WSF
WsfAttributeContainer Class Reference

#include <WsfAttributeContainer.hpp>

Inherits UtAttributeContainer.

Public Member Functions

WsfAttributeContainerClone () const override
virtual bool ProcessInput (UtInput &aInput)

Static Public Member Functions

static bool LoadType (UtInput &aInput)
 Called from the simulation loader, this method processes input file "struct" type declarations.
static void ClearTypes ()

Protected Member Functions

void ParseAssignment (UtInput &aInput, std::string &aName, std::string &aValue)

Detailed Description

A WsfAttributeContainer that can be used to load attributes from input files. (see WsfAttributeContainer::ProcessInput).

Member Function Documentation

◆ ClearTypes()

void WsfAttributeContainer::ClearTypes ( )
static

◆ Clone()

WsfAttributeContainer * WsfAttributeContainer::Clone ( ) const
inlineoverride

Make a copy of this attribute container. Instead of calling this directly, users should use ut::clone.

◆ LoadType()

bool WsfAttributeContainer::LoadType ( UtInput & aInput)
static

Called from the simulation loader, this method processes input file "struct" type declarations.

◆ ParseAssignment()

void WsfAttributeContainer::ParseAssignment ( UtInput & aInput,
std::string & aName,
std::string & aValue )
protected

Process the assignment from the input. Discards the optional '=' character and returns the variable name.

Parameters
aInputThe UtInput object from which commands are extracted
aNameThe name of the variable being assigned as a string
aValue[output] The value to be assigned to the variable.

Referenced by ProcessInput().

◆ ProcessInput()

bool WsfAttributeContainer::ProcessInput ( UtInput & aInput)
virtual

Process input from a generic source. Input can be of a standard type (bool, int, double); or, it can be a generic "attribute", of a name that has been registered via the WsfAttributeContainer::RegisterPrototype method. See the WSF User Input Guide for more information about valid inputs.

Parameters
aInputThe UtInput object from which commands are extracted.

References ParseAssignment().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved