diff options
author | Aleksandar Kanchev <kanchev@itestra.com> | 2013-02-13 12:52:44 +0100 |
---|---|---|
committer | Aleksandar Kanchev <kanchev@itestra.com> | 2013-02-13 12:52:44 +0100 |
commit | 7a0e6ce52432f2c88c9f56bae9a550655db79681 (patch) | |
tree | 9ae4db4db2ea765c0e38f39d70cdf3f0ff4dc7ab /src/CommonAPI/Runtime.h | |
parent | 393051115520fb2fcfe91d24d345c7e9444adf91 (diff) | |
download | genivi-common-api-runtime-7a0e6ce52432f2c88c9f56bae9a550655db79681.tar.gz |
add gitattributes and proper crlf handling
Diffstat (limited to 'src/CommonAPI/Runtime.h')
-rw-r--r-- | src/CommonAPI/Runtime.h | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/src/CommonAPI/Runtime.h b/src/CommonAPI/Runtime.h index f73dfcf..92cf736 100644 --- a/src/CommonAPI/Runtime.h +++ b/src/CommonAPI/Runtime.h @@ -1,43 +1,43 @@ -/* Copyright (C) 2013 BMW Group
- * Author: Manfred Bathelt (manfred.bathelt@bmw.de)
- * Author: Juergen Gehring (juergen.gehring@bmw.de)
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef COMMONAPI_RUNTIME_H_
-#define COMMONAPI_RUNTIME_H_
-
-
-#include "MiddlewareInfo.h"
-#include "Factory.h"
-
-#include <memory>
-#include <fstream>
-#include <unordered_map>
-#include <dlfcn.h>
-#include <string>
-#include <cassert>
-#include <cstring>
-
-
-namespace CommonAPI {
-
-
-class Factory;
-class Runtime;
-
-
-class Runtime {
- public:
- static std::shared_ptr<Runtime> load();
- static std::shared_ptr<Runtime> load(const std::string& middlewareId);
- static void registerRuntimeLoader(std::string middlewareName, MiddlewareRuntimeLoadFunction middlewareRuntimeLoadFunction);
-
- virtual ~Runtime() {}
- virtual std::shared_ptr<Factory> createFactory() = 0;
-};
-
-
-} // namespace CommonAPI
-
-#endif // COMMONAPI_RUNTIME_H_
+/* Copyright (C) 2013 BMW Group + * Author: Manfred Bathelt (manfred.bathelt@bmw.de) + * Author: Juergen Gehring (juergen.gehring@bmw.de) + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#ifndef COMMONAPI_RUNTIME_H_ +#define COMMONAPI_RUNTIME_H_ + + +#include "MiddlewareInfo.h" +#include "Factory.h" + +#include <memory> +#include <fstream> +#include <unordered_map> +#include <dlfcn.h> +#include <string> +#include <cassert> +#include <cstring> + + +namespace CommonAPI { + + +class Factory; +class Runtime; + + +class Runtime { + public: + static std::shared_ptr<Runtime> load(); + static std::shared_ptr<Runtime> load(const std::string& middlewareId); + static void registerRuntimeLoader(std::string middlewareName, MiddlewareRuntimeLoadFunction middlewareRuntimeLoadFunction); + + virtual ~Runtime() {} + virtual std::shared_ptr<Factory> createFactory() = 0; +}; + + +} // namespace CommonAPI + +#endif // COMMONAPI_RUNTIME_H_ |