FileNode Class OpenCvSharp Class Library
File Storage Node class
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharp.CPlusPlusFileNode

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class FileNode : DisposableCvObject

The FileNode type exposes the following members.

Constructors

  NameDescription
Public methodFileNode
The default constructor
Public methodFileNode(IntPtr)
Initializes from cv::FileNode*
Public methodFileNode(FileNode)
The copy constructor
Public methodFileNode(CvFileStorage, CvFileNode)
The full constructor wrapping CvFileNode structure.
Top
Properties

  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyEmpty
Returns true if the node is empty
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
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 propertyItemInt32
returns element of a sequence node
Public propertyItemString
returns element of a mapping node
Public propertyName
Returns the node name or an empty string if the node is nameless
Public propertySize
Returns the number of elements in the node, if it is a sequence or mapping, or 1 otherwise.
Top
Methods

  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the FileNode and optionally releases the managed resources
(Overrides DisposableCvObjectDispose(Boolean).)
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.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodReadDouble
Public methodReadFloat
Public methodReadInt
Public methodReadKeyPoints
Public methodReadMat
Public methodReadObj
Reads the registered object and returns pointer to it
Public methodReadRaw
Reads node elements to the buffer with the specified format
Public methodReadSparseMat
Public methodReadString
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToLegacy
Returns pointer to the underlying C FileStorage structure
Public methodToString (Inherited from Object.)
Top
Operators

  NameDescription
Public operatorStatic member(FileNode to Int32)
Returns the node content as an integer. If the node stores floating-point number, it is rounded.
Public operatorStatic member(FileNode to Single)
Returns the node content as float
Public operatorStatic member(FileNode to Double)
Returns the node content as double
Public operatorStatic member(FileNode to String)
Returns the node content as text string
Public operatorStatic member(FileNode to CvFileNode)
Returns pointer to the underlying C FileStorage structure
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Top
See Also

Reference