|
WSF
|
#include <WsfGroupManager.hpp>
Public Types | |
| using | GroupMap = std::map<WsfStringId, WsfGroup*> |
Public Member Functions | |
| WsfGroupManager ()=default | |
| WsfGroupManager (WsfSimulation *aSimPtr) | |
| Constructor. | |
| ~WsfGroupManager () | |
| Destructor. | |
| bool | AddGroup (WsfGroup *aNewGroupPtr) |
| Adds the given group to the group list. | |
| WsfGroup * | CreateGroup (const std::string &aGroupName, const std::string &aGroupType) |
| Create a new group. | |
| WsfGroup * | GetGroup (const WsfStringId aGroupId) |
| Return the group that matches the given group id. | |
| GroupMap & | GetGroups () |
| bool | LoadInstance (const std::string &aGroupName, WsfPlatformPart *aPlatformPartPtr) |
| bool | LoadInstance (const std::string &aGroupName, WsfPlatform *aPlatformPtr) |
This is a singleton that contains a list of objects that have been created as 'group objects'.
| using WsfGroupManager::GroupMap = std::map<WsfStringId, WsfGroup*> |
|
default |
References AddGroup(), CreateGroup(), GetGroup(), and WsfGroupManager().
Referenced by WsfGroupManager().
| WsfGroupManager::WsfGroupManager | ( | WsfSimulation * | aSimPtr | ) |
Constructor.
| WsfGroupManager::~WsfGroupManager | ( | ) |
Destructor.
| bool WsfGroupManager::AddGroup | ( | WsfGroup * | aNewGroupPtr | ) |
Adds the given group to the group list.
References GetGroup(), and WsfObject::GetName().
Referenced by CreateGroup(), and WsfGroupManager().
| WsfGroup * WsfGroupManager::CreateGroup | ( | const std::string & | aGroupName, |
| const std::string & | aGroupType ) |
Create a new group.
References AddGroup(), GetGroup(), WsfObserver::GroupAdded(), and groupPtr.
Referenced by WsfGroupManager().
| WsfGroup * WsfGroupManager::GetGroup | ( | const WsfStringId | aGroupId | ) |
Return the group that matches the given group id.
Referenced by AddGroup(), CreateGroup(), LoadInstance(), LoadInstance(), and WsfGroupManager().
|
inline |
| bool WsfGroupManager::LoadInstance | ( | const std::string & | aGroupName, |
| WsfPlatform * | aPlatformPtr ) |
create an instance of a group after replacing any tokens in the string
| aGroupName | - the name of the group to instantiate |
| aPlatformPtr | - the platform that will join the group |
References GetGroup(), WsfObject::GetName(), WsfObject::GetType(), groupPtr, and WsfPlatform::JoinGroup().
| bool WsfGroupManager::LoadInstance | ( | const std::string & | aGroupName, |
| WsfPlatformPart * | aPlatformPartPtr ) |
create an instance of a group after replacing any tokens in the string
| aGroupName | - the name of the group to instantiate |
| aPlatformPartPtr | - the platform part that will join the group |
References GetGroup(), WsfObject::GetName(), WsfPlatformPart::GetPlatform(), groupPtr, WsfPlatformPart::JoinGroup(), and platformPtr.