WSF
WsfPathFinderTypes Class Reference

#include <WsfPathFinder.hpp>

Inheritance diagram for WsfPathFinderTypes:
Collaboration diagram for WsfPathFinderTypes:

Public Member Functions

 WsfPathFinderTypes (WsfScenario &aScenario)
std::unique_ptr< WsfPathFinderProcessPathFinderInput (UtInput &aInput)
virtual LoadResult LoadInstance (UtInput &aInput)
 Create an instance of a 'type object' of this class.
void ProcessBlock (UtInputBlock &aInputBlock, WsfPathFinder *aPFPtr, bool init)
bool ProcessInput (UtInput &aInput) override
Public Member Functions inherited from WsfObjectTypeList< WsfPathFinder >
 WsfObjectTypeList (WsfScenario &aScenario, unsigned int aFlags, const std::string &aBlockName)
bool Add (WsfStringId aId, std::unique_ptr< WsfPathFinder > aDefinitionPtr)
bool AddCoreType (WsfStringId aId, std::unique_ptr< WsfPathFinder > aDefinitionPtr)
WsfPathFinderClone (WsfStringId aId) const override
WsfPathFinderFind (WsfStringId aId) const override
ObjectPtrList GetCoreTypes () const
 Returns a list of core types, i.e. types added via AddCoreType.
void GetCurrentTypes (ObjectPtrList &aListOfPtrs) const
void GetCurrentUserTypes (ObjectPtrList &aListOfPtrs) const
 Returns the list of types defined by the user (no core / builtin types).
bool IsType (WsfStringId aTypeName) const
void SetSingularBaseType ()
void SetObjectFactory (const FACTORY_LIST *aFactoryListPtr)
void SetObjectFactoryDefault ()
virtual LoadResult LoadType (UtInput &aInput)
virtual bool InitializeType (ObjectType *aTypePtr)
bool LoadNamedComponent (UtInput &aInput, WsfPlatform &aPlatform, bool aIsAdding, int aRole)
bool LoadUnnamedComponent (UtInput &aInput, WsfPlatform &aPlatform, bool aIsAdding, int aRole)
bool LoadUnnamedComponentWithoutEdit (UtInput &aInput, WsfPlatform &aPlatform, bool aIsAdding, int aRole)
bool DeleteNamedComponent (UtInput &aInput, WsfPlatform &aPlatform, int aRole)
bool DeleteUnnamedComponent (UtInput &aInput, WsfPlatform &aPlatform, int aRole)
Public Member Functions inherited from WsfObjectTypeListBase
 WsfObjectTypeListBase (const WsfObjectTypeListBase &)=delete
WsfObjectTypeListBaseoperator= (const WsfObjectTypeListBase &)=delete
 WsfObjectTypeListBase (unsigned int aFlags, const std::string &aBlockName=std::string(), WsfScenario *aScenarioPtr=nullptr)
 ~WsfObjectTypeListBase () override
void Clear () override
 Clear (Erase) all type entries.
void GetTypeIds (TypeIdList &aListOfIds) const override
 Return a vector of the type identifiers currently being controlled by this list.
int Size () const
 Return the current number of types being maintained by the list.
const std::string & GetBlockName () const override
WsfScenarioGetScenario () const
Public Member Functions inherited from WsfObjectTypeListBaseI
virtual ~WsfObjectTypeListBaseI ()=default
virtual void CompleteLoad ()

Additional Inherited Members

Public Types inherited from WsfObjectTypeList< WsfPathFinder >
typedef WsfPathFinder ObjectType
typedef std::vector< WsfPathFinder * > ObjectPtrList
Public Types inherited from WsfObjectTypeListBase
enum  Flags {
  cREDEFINITION_ALLOWED = 1 , cSINGULAR_BASE_TYPE = 2 , cOBJECT_FACTORY_BASE = 4 , cNO_DELAY_LOAD = 8 ,
  cSIGNATURE_FLAGS = cREDEFINITION_ALLOWED | cNO_DELAY_LOAD
}
Public Types inherited from WsfObjectTypeListBaseI
typedef std::vector< WsfStringIdTypeIdList
Protected Types inherited from WsfObjectTypeListBase
typedef std::map< WsfStringId, std::unique_ptr< WsfObject > > TypeMap
bool InitializeTypeP (WsfObject *aObjectPtr) override
Protected Member Functions inherited from WsfObjectTypeListBase
WsfDeferredInputGetDeferredInput () const
bool CanDelayLoad () const
bool AddP (WsfStringId aId, std::unique_ptr< WsfObject > aDefinitionPtr)
WsfObjectCloneP (WsfStringId aId) const
virtual WsfObjectFindP (WsfStringId aId) const
bool LoadTypeP (UtInput &aInput, WsfObject *&aLoadedObjectPtr)
virtual bool DeferredLoadTypeP (UtInput &aInput, WsfObject *&aLoadedObjectPtr)
bool DeleteComponentP (UtInput &aInput, WsfPlatform &aPlatform, int aRole, bool aIsNamed)
bool LoadComponentP (UtInput &aInput, WsfPlatform &aPlatform, bool aIsAdding, int aRole, bool aIsNamed, bool aIsEditable)
Static Protected Member Functions inherited from WsfObjectTypeList< WsfPathFinder >
static WsfObjectCreateDefaultFunction ()
static WsfObjectCreateFunction ()
static WsfObjectFactoryCreateFunction (void *aListPtr, const std::string &aTypeName)
Protected Attributes inherited from WsfObjectTypeListBase
TypeMap mTypeMap
std::vector< std::unique_ptr< WsfObject > > mRedefinedTypes
 A list of type objects that have been redefined.
std::set< WsfStringIdmCoreTypes
unsigned int mFlags
const std::string mBlockName
WsfObject *(* mCreateSingularTypeFunction )()
WsfObject *(* mFactoryCreateFunction )(void *aListPtr, const std::string &aTypeName)
WsfObject *(* mFactoryCreateDefault )()
void * mFactoryPtr
WsfScenariomScenarioPtr

Constructor & Destructor Documentation

◆ WsfPathFinderTypes()

WsfPathFinderTypes::WsfPathFinderTypes ( WsfScenario & aScenario)

Member Function Documentation

◆ LoadInstance()

WsfPathFinderTypes::LoadResult WsfPathFinderTypes::LoadInstance ( UtInput & aInput)
virtual

Create an instance of a 'type object' of this class.

Process the current command if it would create an instance of an 'type object' of this class.

Parameters
aInputThe input stream.
Returns
'true' if the command was processed or 'false' if not.
Exceptions
UtInput::ExceptionBase(or derived class) if an error was encountered.

References WsfPathFinderList::Add(), WsfScenario::GetPathFinderList(), WsfObjectTypeListBase::GetScenario(), and ProcessPathFinderInput().

Referenced by ProcessInput().

◆ ProcessBlock()

void WsfPathFinderTypes::ProcessBlock ( UtInputBlock & aInputBlock,
WsfPathFinder * aPFPtr,
bool init )

◆ ProcessInput()

bool WsfPathFinderTypes::ProcessInput ( UtInput & aInput)
overridevirtual

Reimplemented from WsfObjectTypeList< WsfPathFinder >.

References LoadInstance().

◆ ProcessPathFinderInput()

std::unique_ptr< WsfPathFinder > WsfPathFinderTypes::ProcessPathFinderInput ( UtInput & aInput)

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