Class SpiceQL::AliasMap
ClassList > SpiceQL > AliasMap
Public Functions
| Type | Name |
|---|---|
| void | addAliasKey (const std::string & alias, const std::string & spiceqlName) Adds an alias to the lookup table for the given SpiceQL name. |
| nlohmann::json | getAliasMap () Retrieves the alias map lookup table as JSON object. |
| std::string | getSpiceqlName (const std::string & name) Gets SpiceQL name given alias or frame name. |
| void | load (std::string path) Loads an alias map from a JSON file path. |
| void | setAliasMap (const nlohmann::json & newAliasMap) Overwrites the current lookup table with a user-provided JSON object. |
Public Static Functions
| Type | Name |
|---|---|
| AliasMap & | instance () Accessor for AliasMap instance. |
Public Functions Documentation
function addAliasKey
Adds an alias to the lookup table for the given SpiceQL name.
Parameters:
function getAliasMap
Retrieves the alias map lookup table as JSON object.
Returns:
A JSON object where keys are SpiceQL names and the values are an array of aliases
function getSpiceqlName
Gets SpiceQL name given alias or frame name.
Parameters:
nameGiven string name to look up
Returns:
The SpiceQL name or empty string if not found
function load
Loads an alias map from a JSON file path.
Parameters:
pathFilesystem path to the JSON file
function setAliasMap
Overwrites the current lookup table with a user-provided JSON object.
Parameters:
newAliasMapThe alias map as a JSON object
Public Static Functions Documentation
function instance
Accessor for AliasMap instance.
Returns:
A reference to the global AliasMap instance
The documentation for this class was generated from the following file SpiceQL/include/alias_map.h