HyperFile 函数

详细描述

函数

FILEERROR   ReadHyperFile ( BaseDocument *doc, GeListNode *node, const Filename &filename, Int32 ident, maxon::String *warning_string)
FILEERROR   WriteHyperFile ( BaseDocument *doc, GeListNode *node, const Filename &filename, Int32 ident)

Function Documentation

◆  ReadHyperFile()

FILEERROR ReadHyperFile ( BaseDocument doc ,
GeListNode node ,
const Filename filename ,
Int32   ident ,
maxon::String warning_string  
)

Reads a single list node from a hyper file on disk.
The read data replaces the data in node .

注意
To dynamically read/write many objects, just pass a GeListHead as node .
参数
[in] doc The document of node . The caller owns the pointed document.
[out] node The node to read to. Must be allocated before the call. The caller owns the pointed node.
[in] filename A valid filename to read from.
[in] ident A unique file identification.
[in] warning_string Assigned additional error information if passed. The caller owns the pointed string.
返回
The file result: FILEERROR

◆  WriteHyperFile()

FILEERROR WriteHyperFile ( BaseDocument doc ,
GeListNode node ,
const Filename filename ,
Int32   ident  
)

Writes a single list node to disk as a hyper file.

参数
[in] doc The document of node . The caller owns the pointed document.
[in] node The node to write. The caller owns the pointed node.
[in] filename A valid filename to write to.
[in] ident A unique file identification.
返回
The file result: FILEERROR