Conscience Core
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
conscience_core::bridging::commands::CommandEntityModelMembersGet Class Reference

#include <CommandEntityModelMembersGet.h>

Inheritance diagram for conscience_core::bridging::commands::CommandEntityModelMembersGet:
conscience_core::bridging::commands::CscCommand

Public Member Functions

 CommandEntityModelMembersGet (const CscEntityModel *entityModel, const vector< int > &memberIndices)
 
- Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
const CscCommandExecutionResult_execute (CscEnvironmentSimulator &environmentSimulator)
 
template<class TResult = CscCommandExecutionResult>
const TResult * execute (CscEnvironmentSimulator &environmentSimulator)
 
const CommandTypeIdgetTypeId () const
 
virtual ~CscCommand ()
 
void setOriginalCommandString (string command)
 

Static Public Attributes

static const CommandTypeId COMMAND_ID = "ENTITY_MODEL_MEMBERS_GET"
 

Protected Member Functions

const CscCommandExecutionResultList< CscMember > * doExecute (CscEnvironmentSimulator &environmentSimulator) override
 
ptr< CscEntityReflexiongetEntityReflexion () const override
 
- Protected Member Functions inherited from conscience_core::bridging::commands::CscCommand
 CscCommand (const CommandTypeId &typeId)
 
const CscCommandExecutionResultNoneresultNone ()
 
const CscCommandExecutionResultSequenceresultSequence (CscSequence *sequence, const string &entitySerialNumber, bool doNotPlay=false)
 
const CscCommandExecutionResultFileresultFile (const fs::path &resultingFilePath)
 
template<class TResult >
const CscCommandExecutionResultObject< TResult > * resultObject (TResult *result)
 
const CscWorldElementId getEntityId () const
 

Protected Attributes

const CscEntityModelentityModel = nullptr
 
vector< int > memberIndices
 
std::unique_ptr< CscLoggerlogger = CscLogger::getForCategory("CommandEntityModelMembersGet")
 
- Protected Attributes inherited from conscience_core::bridging::commands::CscCommand
const CommandTypeId typeId
 
optional< string > originalCommandString = {}
 

Additional Inherited Members

- Public Types inherited from conscience_core::bridging::commands::CscCommand
typedef function< void(CscCommand *command)> CommandExecutedListener
 
- Static Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
static void addCommandExecutedListener (CommandExecutedListener listener)
 

Detailed Description

This command gets entity model's members data, such as mass, initial rotation

Constructor & Destructor Documentation

◆ CommandEntityModelMembersGet()

conscience_core::bridging::commands::CommandEntityModelMembersGet::CommandEntityModelMembersGet ( const CscEntityModel entityModel,
const vector< int > &  memberIndices 
)
Parameters
entityModelmodel of entity on which get members data
memberIndicesa list of member indices to be retrieved. Member indices are starting at 0. If empty, all members are returned

Member Function Documentation

◆ doExecute()

const CscCommandExecutionResultList< CscMember > * conscience_core::bridging::commands::CommandEntityModelMembersGet::doExecute ( CscEnvironmentSimulator environmentSimulator)
overrideprotectedvirtual

◆ getEntityReflexion()

ptr< CscEntityReflexion > conscience_core::bridging::commands::CommandEntityModelMembersGet::getEntityReflexion ( ) const
overrideprotectedvirtual

return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr

Implements conscience_core::bridging::commands::CscCommand.

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::CommandEntityModelMembersGet::COMMAND_ID = "ENTITY_MODEL_MEMBERS_GET"
inlinestatic

◆ entityModel

const CscEntityModel* conscience_core::bridging::commands::CommandEntityModelMembersGet::entityModel = nullptr
protected

◆ logger

std::unique_ptr<CscLogger> conscience_core::bridging::commands::CommandEntityModelMembersGet::logger = CscLogger::getForCategory("CommandEntityModelMembersGet")
protected

◆ memberIndices

vector<int> conscience_core::bridging::commands::CommandEntityModelMembersGet::memberIndices
protected

The documentation for this class was generated from the following files: