Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

lTypes.h

Go to the documentation of this file.
00001 /******************************************************************************/
00002 /*                                                                            */
00003 /* POLiTe - Persistent Object Library Test                                    */
00004 /*                                        Ph.D. Thesis by Mgr. Michal Kopecky */
00005 /*                                                                            */
00006 /* Charles University Prague                                                  */
00007 /*                                                                            */
00008 /******************************************************************************/
00009 /*                                                                            */
00010 /* File name: ...                                                             */
00011 /* Module: ......                                                             */
00012 /*                                                                            */
00013 /******************************************************************************/
00014 
00015 #ifndef __L_TYPES_H__
00016 #define __L_TYPES_H__
00017 
00018 // Chosen numbering system allows representing all strategies in one word.
00019 // Each strategy occupies three bits
00020 // This allows to simply mask out individual strategies
00021 
00022 enum UpdatingStrategy {           //UpdatingStrategy type definition
00023   US_Default                 = 0x0001,
00024   US_Current                 = 0x0002,
00025   US_Inherited               = 0x0003,
00026   US_OnDemand                = 0x0004,
00027   US_Immediately             = 0x0005
00028   };
00029 
00030 #define US_MASK 0x0007
00031 
00032 enum LockingStrategy {           //LockingStrategy type definition
00033   LS_Default                 = 0x0008,
00034   LS_Current                 = 0x0010,
00035   LS_Inherited               = 0x0018,
00036   LS_None                    = 0x0020,
00037   LS_Shared                  = 0x0028,
00038   LS_Exclusive               = 0x0030
00039   };
00040 
00041 #define LS_MASK 0x0038
00042 
00043 enum WaitingStrategy {           //WaitingStrategy type definition
00044   WS_Default                 = 0x0040,
00045   WS_Current                 = 0x0080,
00046   WS_Inherited               = 0x00C0,
00047   WS_Wait                    = 0x0100,
00048   WS_Nowait                  = 0x0140
00049   };
00050 
00051 #define WS_MASK 0x01C0
00052 
00053 enum ReadingStrategy {           //UpdatingStrategy type definition
00054   RS_Default                 = 0x0200,
00055   RS_Current                 = 0x0400,
00056   RS_Inherited               = 0x0600,
00057   RS_Cache                   = 0x0800,
00058   RS_Database                = 0x0A00,
00059   RS_Timestamp               = 0x0C00
00060   };
00061 
00062 #define RS_MASK 0x0E00
00063 
00064 #endif //__L_TYPES_H__

Generated on Sun Jul 14 20:51:15 2002 for POLiTe by doxygen1.2.16