CommonDataModel.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 #pragma once
14 
15 
16 
17 #if (0)
18 #define DEBUGOUT(x) x
19 #else
20 #define DEBUGOUT(x)
21 #endif
22 namespace mil {
23 namespace tatrc {
24  namespace physiology {
25  namespace datamodel {
26  }
27  }
28 }
29 }
30 //using namespace mil::tatrc::phsyiology::datamodel;
31 #define CDM_BIND_DECL(type) \
32  namespace mil { \
33  namespace tatrc { \
34  namespace physiology { \
35  namespace datamodel { \
36  class type; \
37  } \
38  } \
39  } \
40  }
42 
43 #include <stdexcept>
44 #ifdef _MSC_VER
45 #include <direct.h>
46 #else
47 #include <dirent.h>
48 #endif
49 
50 #if defined(_MSC_VER)
51 #include <unordered_map>
52 #else //if (__GCC__) || (__GNUC__)
53 #include <unordered_map>
54 #endif
55 
56 //Utilities
57 
58 #include <biogears/exports.h>
59 namespace biogears {
60 
61 #pragma warning(disable : 4251)
62 struct CommonDataModelException : public std::runtime_error {
64  : std::runtime_error("Common Data Model Error")
65  {
66  }
67 
68  CommonDataModelException(const char* _Message)
69  : std::runtime_error(_Message)
70  {
71  }
72 
73  CommonDataModelException(const std::string& _Message)
74  : std::runtime_error(_Message)
75  {
76  }
77 
78  ~CommonDataModelException() override = default;
79 };
80 }
81 // Basics
82 #include <biogears/cdm/Macros.h>
83 #include <biogears/cdm/utils/Logger.h>
C++ namespace for the uri:/mil/tatrc/physiology/datamodel schema namespace.
Definition: BioGears.cxx:49
Definition: BioGears.cxx:43
STL namespace.
Definition: CommonDataModel.h:62
CommonDataModelException(const std::string &_Message)
Definition: CommonDataModel.h:73
CommonDataModelException()
Definition: CommonDataModel.h:63
Definition: SEElectricalCircuit.h:18
~CommonDataModelException() override=default
CommonDataModelException(const char *_Message)
Definition: CommonDataModel.h:68