 |
TEMU
4.4
The Terma Emulator
|
Go to the documentation of this file.
9 #ifndef TEMU_COMMAND_LINE
10 #define TEMU_COMMAND_LINE
12 #include "temu-c/Support/Attributes.h"
13 #include "temu-c/Support/Objsys.h"
86 temu_PropName FieldRef;
92 const temu_CmdArg args[]);
140 TEMU_API
const temu_CmdArg* temu_classCmdGetOption(
int argc,
const temu_CmdArg args[],
const char *OptName);
153 TEMU_API int64_t temu_classCmdGetOptionAsInteger(
int argc,
const temu_CmdArg args[],
const char *OptName);
167 TEMU_API uint64_t temu_classCmdGetOptionAsUnsigned(
int argc,
const temu_CmdArg args[],
const char *OptName);
235 TEMU_API int64_t temu_cmdGetOptionAsInteger(
void *Ctxt,
const char *OptName);
266 TEMU_API size_t temu_cmdGetPosOptSize(
void *Ctxt);
temu_CmdOptionKind Type
Definition: CommandLine.h:76
TEMU_API int temu_objectInvokeCmd(temu_Object *Obj, void *I, const char *Name, int Argc, temu_CmdArg Argv[])
@ teCOK_Object
Object is a named object.
Definition: CommandLine.h:64
TEMU_API void temu_printCommandLineHelp(void)
const char * Name
Definition: CommandLine.h:75
TEMU_API double temu_cmdGetOptionAsReal(void *Ctxt, const char *OptName)
TEMU_API int temu_cmdSetVariable(const char *Key, const char *Value)
@ teCOK_Double
Any floating point number.
Definition: CommandLine.h:66
int(* temu_CommandFunc)(void *)
Definition: CommandLine.h:59
TEMU_API int temu_raiseCmdError(void *I, const char *S,...)
int(* temu_ObjectCommandFunc)(temu_Object *Obj, void *I, int argc, const temu_CmdArg args[])
Definition: CommandLine.h:91
TEMU_API void * temu_cmdGetData(void *Ctxt)
TEMU_API void * temu_classGetCmd(temu_Class *Cls, const char *Name)
@ teCOK_Reg
Register reference.
Definition: CommandLine.h:69
TEMU_API int temu_parseCommandLineOptions(int argc, const char *argv[])
@ teCOK_Int
Any integer number.
Definition: CommandLine.h:65
@ teCOK_Field
Register field reference.
Definition: CommandLine.h:70
TEMU_API void * temu_createClassCmd(temu_Class *Cls, const char *Name, const char *Doc, temu_ObjectCommandFunc F)
TEMU_API int temu_execCommand(const char *Cmd)
TEMU_API void * temu_createCmd(const char *Name, temu_CommandFunc F, const char *Doc, void *Data)
temu_CmdOptionKind
Definition: CommandLine.h:61
@ teCOK_String
Definition: CommandLine.h:62
TEMU_API int temu_classCmdAddParam(void *Cmd, const char *Name, temu_CmdOptionKind Type, int Required, const char *Doc)
@ teCOK_Path
Path is a string, but with auto completion of file names.
Definition: CommandLine.h:63
const TEMU_API char * temu_cmdGetVariable(const char *Key)
@ teCOK_Class
Class option.
Definition: CommandLine.h:71
@ teCOK_Iface
Interface reference.
Definition: CommandLine.h:68
const TEMU_API char * temu_cmdGetPosOpt(void *Ctxt, size_t Idx)
const TEMU_API char * temu_cmdGetOptionAsString(void *Ctxt, const char *OptName)
TEMU_API int temu_cmdOptionIsValid(void *Ctxt, const char *OptName)
TEMU_API int temu_execCommandFile(const char *File)
TEMU_API void * temu_cmdGetInterpreter(void *Ctxt)
TEMU_API void temu_cmdAddOption(void *Cmd, const char *OptName, temu_CmdOptionKind Type, int Required, const char *Doc, const char *Default)
@ teCOK_Prop
Property reference.
Definition: CommandLine.h:67
TEMU_API void * temu_cmdGetOptionAsObject(void *Ctxt, const char *OptName)