Allows to export and import content through their declaration files. More...
Static Public Member Functions | |
static nkExport::ExporterLoadResult | inputData (nkMemory::StringView filePath) |
static nkMemory::String | inputDataStr (nkMemory::StringView filePath) |
static nkExport::ExporterLoadResult | inputDataSources (nkMemory::StringView sources) |
static bool | outputData (nkMemory::StringView content, nkMemory::StringView path) |
static bool | saveTreeDeclaration (nkExport::Node *tree, nkMemory::StringView pathFromData) |
static bool | saveObjectDeclaration (nkExport::Exportable *object, nkMemory::StringView pathFromData) |
static ContentLoadResultScript | loadScriptDeclaration (nkMemory::StringView pathFromData, bool loadResource=true) |
static ContentLoadResultScript | processScriptSources (nkMemory::StringView sources, bool loadResource=true) |
static ContentLoadResultScript | processScriptTree (nkExport::Node *tree, bool loadResource=true) |
Allows to export and import content through their declaration files.
|
static |
Inputs data from a file and returns associated tree, if parsing can occur. It will use Json parsing.
filePath | The file path, relative to working directory. See nkResources::ResourceManager for path naming convention. |
|
static |
Loads the file into a string for easy access.
filePath | The path of the file to load from. |
|
static |
Inputs data from memory and returns associated tree, if parsing can occur. It will use Json parsing.
sources | The sources to parse. |
|
static |
Writes data to a file.
content | The content to write. |
path | The path, relative to working directory, to output the file to. See nkResources::ResourceManager for path naming convention. |
|
static |
Saves a tree into a file.
tree | The tree to export. |
pathFromData | The path, relative to working directory, to output the file to. See nkResources::ResourceManager for path naming convention. |
|
static |
Saves an exportable into a file.
object | The object to serialize and export. |
pathFromData | The path, relative to working directory, to output the file to. See nkResources::ResourceManager for path naming convention. |
|
static |
Loads a Script declaration, from a file.
pathFromData | The file path, relative to working directory. See nkResources::ResourceManager for path naming convention. |
loadResource | If the importing should ultimately load the scripts found or not. |
|
static |
Loads a Script declaration, from memory.
sources | The memory chunk to interpret. |
loadResource | If the importing should ultimately load the scripts found or not. |
|
static |
Loads a Script declaration, from an existing tree.
tree | The tree to interpret. |
loadResource | If the importing should ultimately load the script or not. |