Class uipc::geometry::AttributeCollectionFactory
ClassList > uipc > geometry > AttributeCollectionFactory
Public Functions
Type | Name |
---|---|
AttributeCollectionFactory () |
|
S< AttributeCollectionCommit > | commit_from_json (const Json & j, DeserialSharedAttributeContext & ctx) |
Json | commit_to_json (const AttributeCollectionCommit & acc, SerialSharedAttributeContext & ctx) |
AttributeCollectionCommit | diff (const AttributeCollection & current, const AttributeCollection & reference) Get the difference between the current and reference attribute collections. |
S< AttributeCollection > | from_json (const Json & j, DeserialSharedAttributeContext & ctx) Create an attribute collection from a json object and a pool of shared attributes. |
Json | to_json (const AttributeCollection & ac, SerialSharedAttributeContext & ctx) |
~AttributeCollectionFactory () |
Public Functions Documentation
function AttributeCollectionFactory
function commit_from_json
S< AttributeCollectionCommit > uipc::geometry::AttributeCollectionFactory::commit_from_json (
const Json & j,
DeserialSharedAttributeContext & ctx
)
function commit_to_json
Json uipc::geometry::AttributeCollectionFactory::commit_to_json (
const AttributeCollectionCommit & acc,
SerialSharedAttributeContext & ctx
)
function diff
Get the difference between the current and reference attribute collections.
AttributeCollectionCommit uipc::geometry::AttributeCollectionFactory::diff (
const AttributeCollection & current,
const AttributeCollection & reference
)
- New Attributes and Modified Attributes will be copied to the diff_copy.
- Deleted Attributes will be collected in the removed_names.
function from_json
Create an attribute collection from a json object and a pool of shared attributes.
S< AttributeCollection > uipc::geometry::AttributeCollectionFactory::from_json (
const Json & j,
DeserialSharedAttributeContext & ctx
)
function to_json
Json uipc::geometry::AttributeCollectionFactory::to_json (
const AttributeCollection & ac,
SerialSharedAttributeContext & ctx
)
@breif Convert an attribute collection to a json object, while using index to replace the attributes pointer
function ~AttributeCollectionFactory
The documentation for this class was generated from the following file include/uipc/geometry/attribute_collection_factory.h