|
static Document * | parseBuffer (const void *, size_t, int, int, string *) |
| Parses NCL document from memory buffer.
|
|
static Document * | parseFile (const string &, int, int, string *) |
| Parses NCL document from file.
|
|
◆ 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
-
| buf | Buffer. |
| size | Buffer size in bytes. |
| width | Initial screen width (in pixels). |
| height | Initial screen height (in pixels). |
[out] | errmsg | Variable 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
-
| path | File path. |
| width | Initial screen width (in pixels). |
| height | Initial screen height (in pixels). |
[out] | errmsg | Variable 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:
- /__w/ginga/ginga/lib/Parser.h
- /__w/ginga/ginga/lib/Parser.cpp