AuboStudio SDK  0.6.3
program_api.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_PROGRAM_API_H
2#define AUBO_SCOPE_PROGRAM_API_H
3
8
9namespace arcs {
10namespace aubo_scope {
12
13/**
14 * Provides access to functionality and services related to programs. This
15 * includes what is available from within AuboScope, as well as creating
16 * additional model elements to be used within AuboScope.
17 */
19{
20public:
23 virtual ~ProgramApi();
24
25 /**
26 * @return An interface for working with the sub-trees of a program node
27 */
28 ProgramModelPtr getProgramModel();
29
30 /**
31 * @return An interface for working with waypoints
32 */
33 WaypointModelPtr getWaypointModel();
34
35 /**
36 * @return An interface for recording undoable changes for program node
37 * contributions
38 */
39 UndoRedoManagerPtr getUndoRedoManager();
40
41private:
42 friend class DataSwitch;
44 void *d_{ nullptr };
45};
46
47} // namespace aubo_scope
48} // namespace arcs
49#endif // AUBO_SCOPE_PROGRAM_API_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
ApplicationApi(ApplicationApi &f)
Provides access to functionality and services related to programs.
UndoRedoManagerPtr getUndoRedoManager()
ProgramModelPtr getProgramModel()
WaypointModelPtr getWaypointModel()