A collection of functions to handle paths on MetadataNode instances.
More...
|
|
| MetadataNodeHelper (global::System.IntPtr cPtr, bool cMemoryOwn) |
| |
|
void | Dispose () |
| |
|
|
static global::System.Runtime.InteropServices.HandleRef | getCPtr (MetadataNodeHelper obj) |
| |
|
static global::System.Runtime.InteropServices.HandleRef | swigRelease (MetadataNodeHelper obj) |
| |
| static ReadonlyMetadataNode | GetNode (ReadonlyMetadataNode root, string path) |
| | Helper returning child node of given root node using a path. ex: "/MRC/ext/pixelSize".
|
| |
| static bool | Exists (ReadonlyMetadataNode root, string path) |
| | Check if a path exists in the metadata tree.
|
| |
| static ReadonlyMetadataNode | CreatePath (MetadataNode origin, string path, VariantDataValue value) |
| | Helper allowing to create the given path in given tree origin. ex: /MRC/ext/pixelSize" or "MRC/ext/pixelSize"
The method will only create missing nodes in given tree origin.
If specified, the given value will be affected to last node of the given path ("pixelSize" in above example). If the whole path already exists, the last node will be overwritten with a created one containing given value.
|
| |
|
|
virtual void | Dispose (bool disposing) |
| |
A collection of functions to handle paths on MetadataNode instances.
- Examples
- CopyImageView.cs, and MetadataTree.cs.
◆ CreatePath()
Helper allowing to create the given path in given tree origin. ex: /MRC/ext/pixelSize" or "MRC/ext/pixelSize"
The method will only create missing nodes in given tree origin.
If specified, the given value will be affected to last node of the given path ("pixelSize" in above example). If the whole path already exists, the last node will be overwritten with a created one containing given value.
- Parameters
-
| origin | node from where the path must be created |
| path | path to create |
| value | value to affect to the leaf of given path, null by default |
- Returns
- the origin node
- Examples
- CopyImageView.cs, and MetadataTree.cs.
◆ Exists()
Check if a path exists in the metadata tree.
- Parameters
-
| root | The node from which to check the path. |
| path | The path to test. |
◆ GetNode()
Helper returning child node of given root node using a path. ex: "/MRC/ext/pixelSize".
The following paths are equivalent: "/MRC/ext/pixelSize", "MRC/ext/pixelSize", "\\MRC\\ext\\pixelSize" and "MRC\\ext\\pixelSize"
If child node doesn't exist, nullptr is returned.
Warning: Doesn't support wildcards or regexp.
- Parameters
-
| root | root of metadata tree to parse |
| path | path of nodes to follow to access to the searched one |
- Returns
- searched child node if found (nullptr otherwise)
- Examples
- MetadataTree.cs.
The documentation for this class was generated from the following file:
- Release/net/generated/MetadataNodeHelper.cs