Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Startup Class Reference

Class used to manage startup of CPLAT applications.

Inheritance diagram for CP_Startup:

CP_NoCopy List of all members.

Public Member Functions

Constructor / Destructor
 CP_Startup ()
 Constructor.
 CP_Startup (int argc, char *argv[])
virtual ~CP_Startup ()
 Destructor.
Constructor / Destructor
 CP_Startup (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR zCmdLine, INT sCmdShow)

Static Public Member Functions

static bool IsOLEInited ()
static void InitOLE ()
Getters
static const CP_Strings_ArrayGetArguments ()
Getters
static HINSTANCE GetInstance ()
static HINSTANCE GetPrevInstance ()
static LPSTR GetCommandLine ()
static INT GetCommandShow ()

Static Protected Attributes

static HINSTANCE fhInst = NULL
static HINSTANCE fhPrevInst = NULL
static LPSTR fzCmdLine = '\0'
static INT fsCmdShow = 0
static bool fsOLEInstalled = false
static HRESULT fhr = NULL
static CP_Strings_Array fArguments

Private Member Functions

Initialization
void InitPlatform (int argc, char *argv[])
Initialization
void InitPlatform ()
void InitPlatform (int argc, char *argv[])
Initialization
void InitPlatform (int argc, char *argv[])

Constructor & Destructor Documentation

CP_Startup::CP_Startup  ) 
 

CP_Startup::CP_Startup int  argc,
char *  argv[]
 

Constructor.

CP_Startup::~CP_Startup  )  [virtual]
 

Destructor.

CP_Startup::CP_Startup HINSTANCE  hInst,
HINSTANCE  hPrevInst,
LPSTR  zCmdLine,
INT  sCmdShow
 

Constructor for Windows.

Parameters:
hInst - the HINSTANCE instance parameter passed in the main routine.
hPrevInst - the HINSTANCE previous inst parameter passed in the main routine.
zCmdLine - the command line parameter passed in the main routine.
sCmdShow - the command show parameter passed in the main routine.


Member Function Documentation

static const CP_Strings_Array& CP_Startup::GetArguments  )  [static]
 

Return the command line arguments passed in at startup.

Exceptions:
none 
Returns:
const CP_Strings_Array& The list of commandline arguments.

void CP_Startup::InitPlatform int  argc,
char *  argv[]
[private]
 

Command line arguments passed in from main

static HINSTANCE CP_Startup::GetInstance  )  [static]
 

Return the HINSTANCE of ourselves.

Exceptions:
none 
Returns:
HINSTANCE The Windows HINSTANCE of this application.

static HINSTANCE CP_Startup::GetPrevInstance  )  [static]
 

Return the previous HINSTANCE of this application.

Exceptions:
none 
Returns:
HINSTANCE The Windows previous HINSTANCE of this application.

static LPSTR CP_Startup::GetCommandLine  )  [static]
 

Return the command line passed into the application at startup.

Exceptions:
none 
Returns:
LPSTR The command line.

static INT CP_Startup::GetCommandShow  )  [static]
 

Return the command show flag.

Exceptions:
none 
Returns:
INT The command show flag passed in at startup.

static bool CP_Startup::IsOLEInited  )  [static]
 

void CP_Startup::InitOLE  )  [static]
 

Initialize OLE.

void CP_Startup::InitPlatform  )  [private]
 

Perform any initialization for the MacOS.

void CP_Startup::InitPlatform int  argc,
char *  argv[]
[private]
 

void CP_Startup::InitPlatform int  argc,
char *  argv[]
[private]
 


Member Data Documentation

CPLAT_Begin_Namespace_CPLAT HINSTANCE CP_Startup::fhInst = NULL [static, protected]
 

HINSTANCE CP_Startup::fhPrevInst = NULL [static, protected]
 

HINSTANCE of this application.

LPSTR CP_Startup::fzCmdLine = '\0' [static, protected]
 

HINSTANCE of any other running application.

INT CP_Startup::fsCmdShow = 0 [static, protected]
 

Command line passed in from main.

bool CP_Startup::fsOLEInstalled = false [static, protected]
 

Show parameter to determine initial state of windows.

HRESULT CP_Startup::fhr = NULL [static, protected]
 

Has OLE been initialized.

CP_Strings_Array CP_Startup::fArguments [static, protected]
 

Result from initializing OLE.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:02:15 2005 for CPLAT by  doxygen 1.4.0