GL Studio C++ Runtime API
glsCommandLine Class Reference

#include <util.h>

Public Member Functions

void ReadCommandLine (int argc, char **argv)
 
void Usage ()
 Prints the usage instructions for the command line operations to stdout.
 
bool SilentMode () const
 

Static Public Member Functions

static glsCommandLineInstance ()
 

Public Attributes

int _argc
 The number of arguments.
 
char ** _argv
 The array of arguments.
 

Detailed Description

A singleton used for accessing the command line arguments in generated code

Member Function Documentation

◆ Instance()

static glsCommandLine * Instance ( )
static
Returns
The glsCommandLine singleton instance.

◆ ReadCommandLine()

void ReadCommandLine ( int  argc,
char **  argv 
)

Parses the command line and takes action accordingly.

Parameters
argcThe number of arguments.
argvThe array of arguments.

◆ SilentMode()

bool SilentMode ( ) const
inline
Returns
Whether or not the app should run in silent mode.

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