Ocean
devices/ios/IOS.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_DEVICES_IOS_IOS_H
9 #define META_OCEAN_DEVICES_IOS_IOS_H
10 
11 #include "ocean/devices/Devices.h"
12 
13 namespace Ocean
14 {
15 
16 namespace Devices
17 {
18 
19 namespace IOS
20 {
21 
22 /**
23  * @ingroup devices
24  * @defgroup devicesios Ocean Devices IOS Library
25  * @{
26  * The Ocean Devices IOS Library provides device access for iOS platforms.<br>
27  * The library is platform dependent.
28  * @}
29  */
30 
31 /**
32  * @namespace Ocean::Devices::IOS Namespace of the Devices IOS library.<p>
33  * The Namespace Ocean::Devices::IOS is used in the entire Ocean Devices IOS Library.
34  */
35 
36 #ifndef __APPLE__
37  #error This library is available on iOS platforms only!
38 #endif
39 
40 // Defines OCEAN_DEVICES_IOS_EXPORT for dll export and import.
41 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
42  #ifdef USE_OCEAN_DEVICES_IOS_EXPORT
43  #define OCEAN_DEVICES_IOS_EXPORT __declspec(dllexport)
44  #else
45  #define OCEAN_DEVICES_IOS_EXPORT __declspec(dllimport)
46  #endif
47 #else
48  #define OCEAN_DEVICES_IOS_EXPORT
49 #endif
50 
51 /**
52  * Returns the name of this devices library.
53  * @ingroup devicesios
54  */
55 OCEAN_DEVICES_IOS_EXPORT const std::string& nameIOSLibrary();
56 
57 #if defined(OCEAN_RUNTIME_STATIC)
58 
59 /**
60  * Registers this IOS device library at the global device manager.
61  * This function calls IOSFactory::registerFactory() only.
62  * @ingroup devicesios
63  */
65 
66 /**
67  * Unregisters this IOS device library at the global device manager.
68  * This function calls IOSFactory::unregisterFactory() only.
69  * @return True, if succeeded
70  * @ingroup devicesios
71  */
73 
74 #endif // OCEAN_RUNTIME_STATIC
75 
76 }
77 
78 }
79 
80 }
81 
82 #endif // META_OCEAN_DEVICES_IOS_IOS_H
void registerIOSLibrary()
Registers this IOS device library at the global device manager.
bool unregisterIOSLibrary()
Unregisters this IOS device library at the global device manager.
OCEAN_DEVICES_IOS_EXPORT const std::string & nameIOSLibrary()
Returns the name of this devices library.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15