Esempio n. 1
0
 /// <summary>
 /// Starts writing a new structure.
 /// </summary>
 /// <param name="name">
 /// Name of the written structure. The structure can be accessed by this name when the storage is read.
 /// </param>
 /// <param name="structFlags">Operation flags associated with the written structure.</param>
 /// <param name="typeName">
 /// Optional parameter, the object type name. In case of XML it is written as a type_id attribute of the
 /// structure opening tag. In the case of YAML it is written after a colon following the structure name.
 /// </param>
 /// <param name="attributes">Not used in the current implementation.</param>
 public void StartWriteStruct(string name, StructStorageFlags structFlags, string typeName = null, AttrList attributes = default(AttrList))
 {
     NativeMethods.cvStartWriteStruct(this, name, structFlags, typeName, attributes);
 }
Esempio n. 2
0
 /// <summary>
 /// Writes an object to file storage.
 /// </summary>
 /// <param name="name">
 /// Name of the written object. Should be <b>null</b> if and only if the parent structure is a sequence.
 /// </param>
 /// <param name="handle">Handle to the written object.</param>
 /// <param name="attributes">The attributes of the object. They are specific for each particular type.</param>
 public void Write(string name, CVHandle handle, AttrList attributes = default(AttrList))
 {
     NativeMethods.cvWrite(this, name, handle, attributes);
 }