Public Member Functions | Static Public Member Functions

CArch Class Reference

Delegating implementation of architecture dependent interfaces. More...

#include <CArch.h>

List of all members.

Public Member Functions

virtual void init ()
 Call init on other arch classes.
ARCH_PLUGIN & plugin () const

Static Public Member Functions

static CArchgetInstance ()
 Return the singleton instance.

Detailed Description

Delegating implementation of architecture dependent interfaces.

This class is a centralized interface to all architecture dependent interface implementations (except miscellaneous functions). It instantiates an implementation of each interface and delegates calls to each method to those implementations. Clients should use the ARCH macro to access this object. Clients must also instantiate exactly one of these objects before attempting to call any method, typically at the beginning of main().

Definition at line 88 of file CArch.h.


Member Function Documentation

CArch * CArch::getInstance (  )  [static]

Return the singleton instance.

The client must have instantiated exactly once CArch object before calling this function.

Definition at line 51 of file CArch.cpp.

void CArch::init (  )  [virtual]

Call init on other arch classes.

Some arch classes depend on others to exist first. When init is called these clases will have ARCH available for use.

Definition at line 41 of file CArch.cpp.


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