Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members

mxcpc_namespace.h

00001 //           ///          //
00002 //          /////        ////
00003 //         /// XXX     XXX ///
00004 //        ///    XXX XXX    ///     $RCSfile: mxcpc_namespace.h,v $  
00005 //       ///       XXX       ///     $Revision: 1.7 $
00006 //      ///      XXX XXX      ///     $Date: 2005/08/09 13:57:26 $
00007 //     ////    XXX     XXX    ////     $Author: cvs-steve $
00008 //    ////                     ////
00009 //   ////  M  O  B  O  T  I  X  ////////////////////////////////////////////////
00010 //  //// Security Vision Systems ///////////////////////////////////////////////
00011 
00012 //           ///          //
00013 //          /////        ////
00014 //         /// XXX     XXX ///
00015 //        ///    XXX XXX    ///     $RCSfile: mxcpc_namespace.h,v $  
00016 //       ///       XXX       ///     $Revision: 1.7 $
00017 //      ///      XXX XXX      ///     $Date: 2005/08/09 13:57:26 $
00018 //     ////    XXX     XXX    ////     $Author: cvs-steve $
00019 //    ////                     ////
00020 //   ////  M  O  B  O  T  I  X  ////////////////////////////////////////////////
00021 //  //// Security Vision Systems ///////////////////////////////////////////////
00022 
00023 // Copyright (c) 2005, MOBOTIX AG.
00024 // This software is made available under the BSD licence. Please refer 
00025 // to the file LICENCE.TXT contained in this distribution for details.
00026 
00027 
00028 #ifndef __MXCPC_NAMESPACE_H__
00029 #define __MXCPC_NAMESPACE_H__
00030 
00031 
00032 
00035 
00038 namespace mxcpc {
00039 
00040   typedef unsigned char   u8;
00041   typedef short           s16;
00042   typedef unsigned int    u32;
00043   typedef unsigned short  u16;
00044   
00046   inline void clamp_s16(s16 *numba, s16 min, s16 max) {
00047     if(*numba < min) *numba = min;
00048     if(*numba > max) *numba = max;
00049   }
00051   inline void clamp_int(int *numba, int min, int max) {
00052     if(*numba < min) *numba = min;
00053     if(*numba > max) *numba = max;
00054   }
00055   
00057 
00061   void sendStatusMsg(const char *txt, void *class_ptr = 0);
00062 };
00063 
00064 
00065 
00066 #endif   // __MXCPC_NAMESPACE_H__
00067 

Generated on Mon Aug 15 03:39:29 2005 for mxcpc by  doxygen 1.4.2-20050421