Click or drag to resize

FileNode Class

http://www.emgu.com
File Storage Node class. The node is used to store each and every element of the file storage opened for reading. When XML/YAML file is read, it is first parsed and stored in the memory as a hierarchical collection of nodes. Each node can be a "leaf" that is contain a single number or a string, or be a collection of other nodes. There can be named collections (mappings) where each element has a name and it is accessed by a name, and ordered collections (sequences) where elements do not have names but rather accessed by index. Type of the file node can be determined using FileNode::type method. Note that file nodes are only used for navigating file storages opened for reading. When a file storage is opened for writing, no data is stored in memory after it is written.
Inheritance Hierarchy

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public class FileNode : UnmanagedObject

The FileNode type exposes the following members.

Properties
  NameDescription
Public propertyIsEmpty
Returns true if the node is empty
Public propertyIsInt
Returns true if the node is an integer
Public propertyIsMap
Returns true if the node is a mapping
Public propertyIsNamed
Returns true if the node has a name
Public propertyIsNone
Returns true if the node is a "none" object
Public propertyIsReal
Returns true if the node is a floating-point number
Public propertyIsSeq
Returns true if the node is a sequence
Public propertyIsString
Returns true if the node is a text string
Public propertyNodeType
Gets the type of the node.
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Top
Methods
  NameDescription
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release the unmanaged resources
(Overrides DisposableObjectDisposeObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReadDouble
Reads the double from the node.
Public methodReadFloat
Reads the float from the node.
Public methodReadInt
Reads the int from the node.
Public methodReadMat
Reads a Mat from the node
Public methodReadString
Reads the string from the node
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodToString (Inherited from Object.)
Top
Fields
  NameDescription
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Top
See Also