libIntegra
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
common_typedefs.h
Go to the documentation of this file.
1 /* libIntegra modular audio framework
2  *
3  * Copyright (C) 2007 Birmingham City University
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18  * USA.
19  */
20 
31 #ifndef INTEGRA_COMMON_TYPEDEFS
32 #define INTEGRA_COMMON_TYPEDEFS
33 
34 #include <sstream>
35 #include <string>
36 #include <vector>
37 #include <unordered_set>
38 #include <unordered_map>
39 
40 #ifdef _WINDOWS
41  #include <guiddef.h>
42 #else
43 namespace integra_api
44 {
45  typedef struct GUID_ {
46  uint32_t Data1;
47  uint16_t Data2;
48  uint16_t Data3;
49  uint8_t Data4[ 8 ];
50  } GUID;
51 }
52 #endif
53 
54 #ifdef _WINDOWS
55  #ifdef LIBINTEGRA_EXPORTS
56  #define INTEGRA_API __declspec(dllexport)
57  #else
58  #define INTEGRA_API __declspec(dllimport)
59  #endif
60 #else
61  #define INTEGRA_API
62 #endif
63 
64 
65 namespace integra_api
66 {
67  /* strings */
68  typedef std::string string;
69  typedef std::ostringstream ostringstream;
70  typedef std::vector<string> string_vector;
71  typedef std::unordered_set<string> string_set;
72  typedef std::unordered_map<string, string> string_map;
74  /* others */
75  typedef std::vector<int> int_vector;
76  typedef std::vector<float> float_vector;
77  typedef std::unordered_set<int> int_set;
78  typedef std::unordered_map<int, int> int_map;
79 };
80 
81 
82 #endif /* INTEGRA_COMMON_TYPEDEFS */
Definition: common_typedefs.h:45