Ocean
Experiences.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_INTERACTION_EXPERIENCES_EXPERIENCES_H
9 #define META_OCEAN_INTERACTION_EXPERIENCES_EXPERIENCES_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace Interaction
17 {
18 
19 namespace Experiences
20 {
21 
22 /**
23  * @ingroup interaction
24  * @defgroup interactionexperiences Ocean Interaction Experiences Library
25  * @{
26  * The Ocean Interaction Experiences Library allows to implement experiences via the interface plugin mechanism.
27  * @}
28  */
29 
30 /**
31  * @namespace Ocean::Interaction::Experiences Namespace of the Interaction Experiences library.<p>
32  * The Namespace Ocean::Interaction::Experiences is used in the entire Ocean Interaction Experiences Library.
33  */
34 
35 // Defines OCEAN_INTERACTION_EX_EXPORT for dll export and import.
36 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
37  #ifdef USE_OCEAN_INTERACTION_EXPERIENCES_EXPORT
38  #define OCEAN_INTERACTION_EXPERIENCES_EXPORT __declspec(dllexport)
39  #else
40  #define OCEAN_INTERACTION_EXPERIENCES_EXPORT __declspec(dllimport)
41  #endif
42 #else
43  #define OCEAN_INTERACTION_EXPERIENCES_EXPORT
44 #endif
45 
46 /**
47  * Returns the name of this interaction library.
48  * @ingroup interactionexperiences
49  */
50 OCEAN_INTERACTION_EXPERIENCES_EXPORT std::string nameExperiencesLibrary();
51 
52 #ifdef OCEAN_RUNTIME_STATIC
53 
54 /**
55  * Registers this Content interaction library at the global interaction manager.
56  * This function calls ContentLibrary::registerLibrary() only.
57  * @ingroup interactionexperiences
58  */
60 
61 /**
62  * Unregisters this Content interaction library at the global interaction manager.
63  * This function calls ContentLibrary::unregisterLibrary() only.
64  * @return True, if succeeded
65  * @ingroup interactionexperiences
66  */
68 
69 #endif // OCEAN_RUNTIME_STATIC
70 
71 } // namespace Experiences
72 
73 } // namespace Interaction
74 
75 } // namespace Ocean
76 
77 #endif // META_OCEAN_INTERACTION_EXPERIENCES_EXPERIENCES_H
bool unregisterExperiencesLibrary()
Unregisters this Content interaction library at the global interaction manager.
void registerExperiencesLibrary()
Registers this Content interaction library at the global interaction manager.
OCEAN_INTERACTION_EXPERIENCES_EXPORT std::string nameExperiencesLibrary()
Returns the name of this interaction library.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15