SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | List of all members
smtk::attribute::PythonRule Class Reference

A custom rule type that evaluates a Python function to determine the validity of association or dissociation. More...

#include <PythonRule.h>

Inheritance diagram for smtk::attribute::PythonRule:
[legend]
Collaboration diagram for smtk::attribute::PythonRule:
[legend]

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 PythonRuleoperator>> (nlohmann::json &json) const override
 Serialize the rule to/from json.
 
PythonRuleoperator<< (const nlohmann::json &json) override
 
const PythonRuleoperator>> (pugi::xml_node &node) const override
 Serialize the rule to/from xml.
 
PythonRuleoperator<< (const pugi::xml_node &node) override
 
- Public Member Functions inherited from smtk::attribute::Rule
 smtkTypenameMacroBase (smtk::attribute::Rule)
 

Detailed Description

A custom rule type that evaluates a Python function to determine the validity of association or dissociation.


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