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

ltkcpp_platform.h

Go to the documentation of this file.
00001 
00002 /*
00003  ***************************************************************************
00004  *  Copyright 2007,2008 Impinj, Inc.
00005  *
00006  *  Licensed under the Apache License, Version 2.0 (the "License");
00007  *  you may not use this file except in compliance with the License.
00008  *  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  *  Unless required by applicable law or agreed to in writing, software
00013  *  distributed under the License is distributed on an "AS IS" BASIS,
00014  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  *  See the License for the specific language governing permissions and
00016  *  limitations under the License.
00017  *
00018  ***************************************************************************
00019  */
00020 
00032 /*
00033  * Include file to establish context
00034  * for the LLRP Tool Kit (LTK) C++ platform.
00035  */
00036 
00037 #include <list>
00038 #include <string.h>         /* memcpy() */
00039 
00040 #define FALSE       0
00041 #define TRUE        1
00042 
00043 namespace LLRP
00044 {
00045 
00046 /*
00047  * Typedefs of simple types.
00048  * The LTK/C++ uses these types extensively.
00049  * To retarget to another C++ platform change
00050  * these typedefs. Everything else should be
00051  * good to go.
00052  */
00053 
00054 #ifdef linux
00055 #include <stdint.h>
00057 typedef uint8_t                 llrp_u8_t;
00059 typedef int8_t                  llrp_s8_t;
00061 typedef uint16_t                llrp_u16_t;
00063 typedef int16_t                 llrp_s16_t;
00065 typedef uint32_t                llrp_u32_t;
00067 typedef int32_t                 llrp_s32_t;
00069 typedef uint64_t                llrp_u64_t;
00071 typedef int64_t                 llrp_s64_t;
00073 typedef uint8_t                 llrp_u1_t;
00075 typedef uint8_t                 llrp_u2_t;
00077 typedef uint8_t                 llrp_utf8_t;
00079 typedef bool                    llrp_bool_t;
00081 typedef uint8_t                 llrp_byte_t;
00082 #endif /* linux */
00083 
00084 #ifdef WIN32
00085 typedef unsigned char           llrp_u8_t;
00086 typedef signed char             llrp_s8_t;
00087 typedef unsigned short          llrp_u16_t;
00088 typedef signed short            llrp_s16_t;
00089 typedef unsigned int            llrp_u32_t;
00090 typedef signed int              llrp_s32_t;
00091 typedef unsigned long long      llrp_u64_t;
00092 typedef signed long long        llrp_s64_t;
00093 typedef unsigned char           llrp_u1_t;
00094 typedef unsigned char           llrp_u2_t;
00095 typedef unsigned char           llrp_utf8_t;
00096 typedef bool                    llrp_bool_t;
00097 typedef unsigned char           llrp_byte_t;
00098 #endif /* WIN32 */
00099 
00100 };  /* namespace LLRP */

Generated on Wed Nov 26 12:27:45 2008 for LTKCPP-- LLRP Toolkit C Plus Plus Library by  doxygen 1.3.9.1