GetByDefaultName¶
-
template<typename T>
T INamed::GetByDefaultName(const std::string &name)¶ Gets the child with the specified type and default name.
- Template Parameters
typename T – The type of the child.
- Parameters
name – Default name of the child.
- Returns
T – Child with the type and specified default name.
- Throws
CInvalidArgumentException
– Child with the type and specified default name does not exist.CUnsupportedException
– Function not supported (e.g. for system).CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CObjectDestroyedException
– Object is destroyed (only applicable if entity is disposable).