CrystalSpace

Public API Reference

CS::WX::AppArgConvert Class Reference

Helper to convert wxApp command line arguments into CS' encoding. More...

#include <cstool/wxappargconvert.h>

List of all members.

Public Member Functions

 AppArgConvert (int argc, const wxChar *const *argv)
 Construct argument helper.
int csArgc () const
 Return the argc value for passing to CS.
const char *const * csArgv () const
 Return the argv value for passing to CS.

Detailed Description

Helper to convert wxApp command line arguments into CS' encoding.

Usage:

 // Construct with wxApp argc/argc members
 CS:WX::AppArgConvert argHelper (app->argc, app->argv);
 // Pass converted arguments to CS.
 csInitializer::CreateEnvironment (argHelper.csArgc(), argHelper.csArgv());

Definition at line 42 of file wxappargconvert.h.


Constructor & Destructor Documentation

CS::WX::AppArgConvert::AppArgConvert ( int  argc,
const wxChar *const *  argv 
) [inline]

Construct argument helper.

Parameters:
argc argc member of the wxApp instance.
argv argv member of the wxApp instance.

Definition at line 52 of file wxappargconvert.h.


Member Function Documentation

int CS::WX::AppArgConvert::csArgc (  )  const [inline]

Return the argc value for passing to CS.

Definition at line 79 of file wxappargconvert.h.

const char* const* CS::WX::AppArgConvert::csArgv (  )  const [inline]

Return the argv value for passing to CS.

Definition at line 82 of file wxappargconvert.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1