| GL Studio C++ Runtime API

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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 glsCommandLine * | Instance ()

## 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

  argc | The number of arguments.
  argv | The 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:

- util.h