pagesize.cpp File Reference

(r1785/r1668)

#include "camtypes.h"
#include "pagesize.h"
#include "oilfiles.h"
#include <limits.h>

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW

Enumerations

enum  PsTokenIndex {
  PsTOKEN_NONE = -1, TOKEN_PAGESIZE, TOKEN_PAGESIZEEND, TOKEN_MILLIMETRES,
  TOKEN_INCHES, PsNUM_TOKENS
}

Functions

 DECLARE_SOURCE ("$Revision: 1668 $")
static PsTokenIndex FindToken (const TCHAR *Token)

Variables

struct {
   TCHAR *   Token
   TCHAR *   Token
   TCHAR *   tag
   INT32   Id
   TCHAR *   Token
   UINT32   Magic
   UINT32   Serial
   wchar_t   Name [BRANDED_NAME_MAX]
   wchar_t   Company [BRANDED_NAME_MAX]
   TCHAR *   Token
   GridType   Type
   UINT32   IDS
   TCHAR *   Token
TokenTable []


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 129 of file pagesize.cpp.


Enumeration Type Documentation

enum PsTokenIndex
 

Enumerator:
PsTOKEN_NONE 
TOKEN_PAGESIZE 
TOKEN_PAGESIZEEND 
TOKEN_MILLIMETRES 
TOKEN_INCHES 
PsNUM_TOKENS 

Definition at line 134 of file pagesize.cpp.

00135 {
00136     PsTOKEN_NONE = -1,
00137     TOKEN_PAGESIZE,
00138     TOKEN_PAGESIZEEND,
00139     TOKEN_MILLIMETRES,
00140     TOKEN_INCHES,
00141     // Add new token indexs BEFORE NUM_TOKENS
00142     PsNUM_TOKENS
00143 };


Function Documentation

DECLARE_SOURCE "$Revision: 1668 $"   ) 
 

static PsTokenIndex FindToken const TCHAR Token  )  [static]
 

Definition at line 157 of file pagesize.cpp.

00158 {
00159     for (INT32 i = 0; i < PsNUM_TOKENS; i++)
00160         if (camStrcmp(TokenTable[i].Token,Token) == 0) return  (PsTokenIndex) i;
00161 
00162     return PsTOKEN_NONE;
00163 }


Variable Documentation

TCHAR* Token
 

Definition at line 147 of file pagesize.cpp.

struct { ... } TokenTable[] [static]
 


Generated on Sat Nov 10 03:49:18 2007 for Camelot by  doxygen 1.4.4