AuboStudio SDK 0.6.3

program_creation_context.h
浏览该文件的文档.
1 #ifndef AUBO_SCOPE_PROGRAM_CREATION_CONTEXT_H
2 #define AUBO_SCOPE_PROGRAM_CREATION_CONTEXT_H
3
4 #include <aubo_caps/class_forward.h>
5
6 namespace arcs {
7 namespace aubo_scope {
8 ARCS_CLASS_FORWARD(ProgramCreationContext);
9
10 /**
11 * Provides information about the context in which an installation node is
12 * created
13 */
14 class ProgramCreationContext
15 {
16 public:
17 enum NodeCreationType
18 {
19 NEW,
20 LOAD
21 };
22
23 ProgramCreationContext(ProgramCreationContext &f);
24 ProgramCreationContext(ProgramCreationContext &&f);
25 ~ProgramCreationContext();
26
27 NodeCreationType getNodeCreationType();
28
29 std::string getCreatedVersion();
30 std::string getLastSavedVersion();
31
32 private:
33 friend class DataSwitch;
34 ProgramCreationContext();
35 void *d_{ nullptr };
36 };
37
38 } // namespace aubo_scope
39 } // namespace arcs
40
41 #endif // AUBO_SCOPE_PROGRAM_CREATION_CONTEXT_H
class_forward.h
arcs::aubo_scope::ProgramCreationContext
Provides information about the context in which an installation node is created
Definition: program_creation_context.h:15
arcs::aubo_scope::ProgramCreationContext::getNodeCreationType
NodeCreationType getNodeCreationType()
arcs::aubo_scope::ProgramCreationContext::d_
void * d_
Definition: program_creation_context.h:35
arcs::aubo_scope::ProgramCreationContext::ProgramCreationContext
ProgramCreationContext(ProgramCreationContext &f)
arcs::aubo_scope::ProgramCreationContext::~ProgramCreationContext
~ProgramCreationContext()
arcs::aubo_scope::ProgramCreationContext::NodeCreationType
NodeCreationType
Definition: program_creation_context.h:18
arcs::aubo_scope::ProgramCreationContext::LOAD
@ LOAD
Definition: program_creation_context.h:20
arcs::aubo_scope::ProgramCreationContext::NEW
@ NEW
Definition: program_creation_context.h:19
arcs::aubo_scope::ProgramCreationContext::getCreatedVersion
std::string getCreatedVersion()
arcs::aubo_scope::ProgramCreationContext::DataSwitch
friend class DataSwitch
Definition: program_creation_context.h:33
arcs::aubo_scope::ProgramCreationContext::getLastSavedVersion
std::string getLastSavedVersion()
arcs::aubo_scope::ProgramCreationContext::ProgramCreationContext
ProgramCreationContext(ProgramCreationContext &&f)
arcs::aubo_scope::ProgramCreationContext::ProgramCreationContext
ProgramCreationContext()
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7