libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblApp Struct Reference

#include <gimbal_app.h>

Inheritance diagram for GblApp:
GblObject GblBox GblITableVariant GblInstance

Data Fields

union { 
 
   GblAppClass *   pClass 
 
   GblObject   base 
 
};  
 
const char ** ppArgv
 
size_t argc
 
GblMainLooppLoop
 
- Data Fields inherited from GblObject
union { 
 
   GblObjectClass *   pClass 
 
   GblBox   base 
 
};  
 
- Data Fields inherited from GblBox
union { 
 
   GblBoxClass *   pClass 
 
   GblInstance   base 
 
};  
 
struct { 
 
   GblArrayMap *   pFields 
 
   volatile uint16_t   refCounter 
 
   uint16_t   contextType: 1 
 
   uint16_t   constructedInPlace: 1 
 
   uint16_t   derivedFlags: 14 
 
private_ 
 
- Data Fields inherited from GblInstance
GblClasspClass
 

Related Symbols

(Note that these are not member symbols.)

Instance Methods

Methods which operate on a GblApp instance

GblAppGblApp_create (int argc, const char **ppArgv)
 
GblRefCount GblApp_unref (GblApp *pSelf)
 
GblVersion GblApp_version (const GblApp *pSelf)
 
GblStringRefGblApp_organization (const GblApp *pSelf)
 
GblStringRefGblApp_domain (const GblApp *pSelf)
 
const GblStringListGblApp_argList (const GblApp *pSelf)
 
GBL_RESULT GblApp_exec (GblApp *pSelf)
 
GBL_RESULT GblApp_exit (GblApp *pSelf, int retVal)
 
GBL_RESULT GblApp_quit (GblApp *pSelf, int retVal)
 

Detailed Description

Top-level per-program application instance.

Todo:
Implement me.
See also
GblAppClass

Definition at line 63 of file gimbal_app.h.

Friends And Related Symbol Documentation

◆ GblApp_create()

GblApp * GblApp_create ( int  argc,
const char **  ppArgv 
)
related

Creates a GblApp instance with the given command-line arguments, returning a pointer to it.

◆ GblApp_unref()

GblRefCount GblApp_unref ( GblApp pSelf)
related

Decrements the refcount of a GblApp instance, destroying it if it is the last one.

◆ GblApp_version()

GblVersion GblApp_version ( const GblApp pSelf)
related

Returns the version associated with the GblApp instance.

◆ GblApp_organization()

GblStringRef * GblApp_organization ( const GblApp pSelf)
related

Returns the organization string associated with the GblApp instance.

◆ GblApp_domain()

GblStringRef * GblApp_domain ( const GblApp pSelf)
related

Returns the domain string associated with the GblApp instance.

◆ GblApp_argList()

const GblStringList * GblApp_argList ( const GblApp pSelf)
related

Returns a GblStringList containing all command-line arguments as individual strings.

◆ GblApp_exec()

GBL_RESULT GblApp_exec ( GblApp pSelf)
related

Top-level execution function for a GblApp–blocks until execution is complete, returning a result code.

◆ GblApp_exit()

GBL_RESULT GblApp_exit ( GblApp pSelf,
int  retVal 
)
related

Terminates an application abruptly, without signalling "quitting".

◆ GblApp_quit()

GBL_RESULT GblApp_quit ( GblApp pSelf,
int  retVal 
)
related

Terminates an application gracefully, emitting the "quitting" signal and doing any cleanup.

Field Documentation

◆ pClass

GblAppClass* GblApp::pClass

Pointer to class/vtable structure.

Definition at line 63 of file gimbal_app.h.

◆ base

GblObject GblApp::base

Inherited base instance structure.

Definition at line 63 of file gimbal_app.h.

◆ ppArgv

const char** GblApp::ppArgv

Definition at line 64 of file gimbal_app.h.

◆ argc

size_t GblApp::argc

Definition at line 65 of file gimbal_app.h.

◆ pLoop

GblMainLoop* GblApp::pLoop

Definition at line 66 of file gimbal_app.h.


The documentation for this struct was generated from the following file: