Servus  1.4.0
C++ network oriented utilities including a zeroconf implementation
types.h
1 /* Copyright (c) 2015-2016, Human Brain Project
2  * Stefan.Eilemann@epfl.ch
3  * Juan Hernando <jhernando@fi.upm.es>
4  *
5  * This file is part of Servus <https://github.com/HBPVIS/Servus>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 3.0 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef SERVUS_TYPES_H
22 #define SERVUS_TYPES_H
23 
24 #include <servus/defines.h>
25 #include <sys/types.h>
26 #ifndef _MSC_VER
27 # include <stdint.h>
28 #endif
29 #ifdef _WIN32
30 # include <basetsd.h>
31 # ifdef _MSC_VER
32 typedef UINT64 uint64_t;
33 typedef INT64 int64_t;
34 typedef UINT32 uint32_t;
35 typedef INT32 int32_t;
36 typedef UINT16 uint16_t;
37 typedef INT16 int16_t;
38 typedef UINT8 uint8_t;
39 typedef INT8 int8_t;
40 # ifndef HAVE_SSIZE_T
41 typedef SSIZE_T ssize_t;
42 # define HAVE_SSIZE_T
43 # endif
44 # endif // Win32, Visual C++
45 #endif // Win32
46 
47 #include <vector>
48 #include <string>
49 
50 #ifdef SERVUS_USE_CXX03
51 # ifndef final
52 # define final
53 # endif
54 # ifndef override
55 # define override
56 # endif
57 #endif
58 
59 namespace servus
60 {
61 
62 class Listener;
63 class Serializable;
64 class Servus;
65 class URI;
66 class uint128_t;
67 
68 typedef std::vector< std::string > Strings;
69 }
70 
71 #endif