SHAPER
9.13.0
|
Contains the state information about the feature: is it enabled or disabled. More...
Public Member Functions | |
MODELAPI_EXPORT | ModelAPI_FeatureStateMessage (const Events_ID theID, const void *theSender=0) |
Creates an empty message. More... | |
virtual MODELAPI_EXPORT | ~ModelAPI_FeatureStateMessage () |
The virtual destructor. More... | |
MODELAPI_EXPORT std::shared_ptr< ModelAPI_Feature > | feature () const |
Returns the feature this message is related to. More... | |
MODELAPI_EXPORT void | setFeature (std::shared_ptr< ModelAPI_Feature > &theFeature) |
Stores the feature this message is related to. More... | |
MODELAPI_EXPORT bool | hasState (const std::string &theFeatureId) const |
Returns true if feature has specific state. More... | |
MODELAPI_EXPORT bool | state (const std::string &theFeatureId, bool theDefault=false) const |
Returns true if feature is enabled. More... | |
MODELAPI_EXPORT void | setState (const std::string &theFeatureId, bool theValue) |
Stores the feature state. More... | |
MODELAPI_EXPORT std::list< std::string > | features () const |
Returns all feature IDs with states. More... | |
const Events_ID & | eventID () const |
Returns identifier of the message. More... | |
void * | sender () const |
Returns sender of the message or NULL if it is anonymous message. More... | |
Contains the state information about the feature: is it enabled or disabled.
ModelAPI_FeatureStateMessage::ModelAPI_FeatureStateMessage | ( | const Events_ID | theID, |
const void * | theSender = 0 |
||
) |
Creates an empty message.
|
virtual |
The virtual destructor.
std::shared_ptr< ModelAPI_Feature > ModelAPI_FeatureStateMessage::feature | ( | ) | const |
Returns the feature this message is related to.
void ModelAPI_FeatureStateMessage::setFeature | ( | std::shared_ptr< ModelAPI_Feature > & | theFeature | ) |
Stores the feature this message is related to.
bool ModelAPI_FeatureStateMessage::hasState | ( | const std::string & | theFeatureId | ) | const |
Returns true if feature has specific state.
bool ModelAPI_FeatureStateMessage::state | ( | const std::string & | theFeatureId, |
bool | theDefault = false |
||
) | const |
Returns true if feature is enabled.
void ModelAPI_FeatureStateMessage::setState | ( | const std::string & | theFeatureId, |
bool | theValue | ||
) |
Stores the feature state.
std::list< std::string > ModelAPI_FeatureStateMessage::features | ( | ) | const |
Returns all feature IDs with states.
|
inlineinherited |
Returns identifier of the message.
|
inlineinherited |
Returns sender of the message or NULL if it is anonymous message.