ginga 1.0
The Ginga iTV middleware
Loading...
Searching...
No Matches
ginga::Parser Class Reference

Static Public Member Functions

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

Member Function Documentation

◆ parseBuffer()

Document * ginga::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 * ginga::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: