units.h File Reference

(r1785/r1261)

#include "list.h"
#include "unittype.h"
#include "pump.h"
#include "ccfile.h"

Go to the source code of this file.

Classes

struct  UnitFlagsType
class  Unit
 Encapsulates units within Camelot. All units (i.e. default and user-defined ones) are an instance of this class. Each document has its own list of units controlled by an instance of DocUnitList within the Document class. Therefore you should get hold of the DocUnitList within the current doc when you want to add/delete/edit/find a unit. More...
class  DocUnitList
 Encapsulates units within Camelot. All units (i.e. default and user-defined ones) are an instance of this class. Each document has its own list of units controlled by an instance of DocUnitList within the Document class. Therefore you should get hold of the DocUnitList within the current doc when you want to add/delete/edit/find a unit. More...
class  UnitMsg
 This message is sent whenever something happens to a unit. More...

Defines

#define MM_MP_VAL   2834.652715
#define CM_MP_VAL   (MM_MP_VAL*10)
#define M_MP_VAL   (CM_MP_VAL*100)
#define KM_MP_VAL   ( M_MP_VAL*1000)
#define MP_MP_VAL   1.0
#define PT_MP_VAL   (MP_MP_VAL*1000)
#define PI_MP_VAL   (PT_MP_VAL*12)
#define IN_MP_VAL   (PI_MP_VAL*6)
#define FT_MP_VAL   (IN_MP_VAL*12)
#define YD_MP_VAL   (FT_MP_VAL*3)
#define MI_MP_VAL   (YD_MP_VAL*1760)
#define PX_MP_VAL   750.0

Enumerations

enum  UnitReason { UNITREASON_OK, UNITREASON_HASDESCENDENTS, UNITREASON_BEINGUSED }


Define Documentation

#define CM_MP_VAL   (MM_MP_VAL*10)
 

Definition at line 121 of file units.h.

#define FT_MP_VAL   (IN_MP_VAL*12)
 

Definition at line 129 of file units.h.

#define IN_MP_VAL   (PI_MP_VAL*6)
 

Definition at line 128 of file units.h.

#define KM_MP_VAL   ( M_MP_VAL*1000)
 

Definition at line 123 of file units.h.

#define M_MP_VAL   (CM_MP_VAL*100)
 

Definition at line 122 of file units.h.

#define MI_MP_VAL   (YD_MP_VAL*1760)
 

Definition at line 131 of file units.h.

#define MM_MP_VAL   2834.652715
 

Definition at line 120 of file units.h.

#define MP_MP_VAL   1.0
 

Definition at line 125 of file units.h.

#define PI_MP_VAL   (PT_MP_VAL*12)
 

Definition at line 127 of file units.h.

#define PT_MP_VAL   (MP_MP_VAL*1000)
 

Definition at line 126 of file units.h.

#define PX_MP_VAL   750.0
 

Definition at line 132 of file units.h.

#define YD_MP_VAL   (FT_MP_VAL*3)
 

Definition at line 130 of file units.h.


Enumeration Type Documentation

enum UnitReason
 

Enumerator:
UNITREASON_OK 
UNITREASON_HASDESCENDENTS 
UNITREASON_BEINGUSED 

Definition at line 144 of file units.h.


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