SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A custom rule type that evaluates a Python function to determine the validity of association or dissociation. More...
#include <PythonRule.h>
Public Member Functions | |
smtkTypenameMacro (smtk::attribute::PythonRule) | |
bool | operator() (const Attribute::ConstPtr &, const smtk::resource::PersistentObject::ConstPtr &) const override |
Verify whether an attribute can be associated/dissociated to/from a persistent object. | |
const PythonRule & | operator>> (nlohmann::json &json) const override |
Serialize the rule to/from json. | |
PythonRule & | operator<< (const nlohmann::json &json) override |
const PythonRule & | operator>> (pugi::xml_node &node) const override |
Serialize the rule to/from xml. | |
PythonRule & | operator<< (const pugi::xml_node &node) override |
![]() | |
smtkTypenameMacroBase (smtk::attribute::Rule) | |
A custom rule type that evaluates a Python function to determine the validity of association or dissociation.