Ginga  0.13.6.2086-83aa
The iTV middleware.
Parser Class Reference

Static Public Member Functions

static DocumentparseBuffer (const void *, size_t, int, int, string *)
 Parses NCL document from memory buffer. More...
 
static DocumentparseFile (const string &, int, int, string *)
 Parses NCL document from file. More...
 

Member Function Documentation

◆ parseBuffer()

Document * Parser::parseBuffer ( const void *  buf,
size_t  size,
int  width,
int  height,
string *  errmsg 
)
static

Parses NCL document from memory buffer.

Parameters
bufBuffer.
sizeBuffer size in bytes.
widthInitial screen width (in pixels).
heightInitial screen height (in pixels).
[out]errmsgVariable to store the error message (if any).
Returns
The resulting Document if successful, or null otherwise.

◆ parseFile()

Document * Parser::parseFile ( const string &  path,
int  width,
int  height,
string *  errmsg 
)
static

Parses NCL document from file.

Parameters
pathFile path.
widthInitial screen width (in pixels).
heightInitial screen height (in pixels).
[out]errmsgVariable to store the error message (if any).
Returns
The resulting Document if successful, or null otherwise.

The documentation for this class was generated from the following files: