About
The maxon::Application class collects several static functions that give access to information on the application's environment and properties.
Application
These functions allow to access various paths as a maxon::Url:
PyCompilerFlags * flags
Definition: ast.h:14
static MAXON_FUNCTION Result< Url > GetUrl(APPLICATION_URLTYPE urlType)
static MAXON_METHOD Result< Url > GetTempUrl(const Url &directory)
Definition: basearray.h:412
Definition: string.h:1235
PyObject * stream
Definition: codecs.h:186
@ SEEK_TO_END
Sets the file handle to the end of file after opening. To append to the end of a file use WRITE_DONT_...
@ WRITE_DONT_TRUNCATE
Allows to write to existing files without truncation, so the existing file is kept as is.
PyObject * text
Definition: pycore_traceback.h:70
#define iferr_return
Definition: resultbase.h:1519
{
const maxon::IoBrowseRef& browseDirectory = (it)
iferr_return;
const maxon::Url url = browseDirectory.GetCurrentPath();
}
@ NONE
No flags specified.
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:176
@ CURRENT_MODULE_RESOURCE_DIR
Resource directory of the module that invoked this call.
These functions allow to access the command line arguments applied to the application when it was started:
{
}
#define arg(a0, a1, a2, a3, a4, a5, a6, a7)
Definition: Python-ast.h:673
Py_ssize_t i
Definition: abstract.h:645
static MAXON_METHOD Int GetCommandLineArgCount()
static MAXON_METHOD String GetCommandLineArg(Int idx)
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:188
maxon::Application::GetMachineInfo() returns a DataDictionary which stores information on the current machine. See maxon::MACHINEINFO for IDs; compare with Machines Manual.
static MAXON_METHOD DataDictionary GetMachineInfo()
maxon::Application::GetVersion() allows to access the version number and build ID of the application.
static MAXON_METHOD Result< void > GetVersion(Int &version, String &buildID)
The application mode defines the behaviour after startup.
Further application features (maxon::APPLICATIONFEATURE) are accessed with:
Further Reading