-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathsdaiModel_contents.cc
More file actions
124 lines (95 loc) · 3.51 KB
/
sdaiModel_contents.cc
File metadata and controls
124 lines (95 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#include <sdai.h>
///////// SDAI_Model_contents_instances
SDAI_Model_contents_instances::SDAI_Model_contents_instances( ) {
}
SDAI_Model_contents_instances ::~SDAI_Model_contents_instances() {
}
///////// SDAI_Model_contents
SDAI_Model_contents::SDAI_Model_contents( ) {
}
SDAI_Model_contents ::~SDAI_Model_contents() {
}
// const Entity_instance__set_var instances() const;
//const SDAIAGGRH(Set, EntityInstanceH) Instances() const;
SDAI_Model_contents_instances_ptr
SDAI_Model_contents::instances_() {
return &_instances;
}
SDAI_Model_contents_instances_ptr
SDAI_Model_contents::instances_() const {
return ( SDAI_Model_contents_instances_ptr ) &_instances;
}
SDAI_Entity_extent__set_var
SDAI_Model_contents::folders_() {
return &_folders;
}
SDAI_Entity_extent__set_var
SDAI_Model_contents::folders_() const {
return ( SDAI_Entity_extent__set_var )&_folders;
}
SDAI_Entity_extent__set_var
SDAI_Model_contents::populated_folders_() {
return &_populated_folders;
}
SDAI_Entity_extent__set_var
SDAI_Model_contents::populated_folders_() const {
return ( SDAI_Entity_extent__set_var )&_populated_folders;
}
SDAI_PID_DA_ptr SDAI_Model_contents::get_object_pid( const SDAI_DAObject_ptr & d ) const {
std::cerr << __FILE__ << ":" << __LINE__ << " - SDAI_Model_contents::get_object_pid() unimplemented!" << std::endl;
(void) d; //unused
return 0;
}
SDAI_DAObject_ptr SDAI_Model_contents::lookup( const SDAI_PID_DA_ptr & p ) const {
std::cerr << __FILE__ << ":" << __LINE__ << " - SDAI_Model_contents::lookup() unimplemented!" << std::endl;
(void) p; //unused
return 0;
}
SDAI_DAObject_ptr SDAI_Model_contents::CreateEntityInstance( const char * Type ) {
std::cerr << __FILE__ << ":" << __LINE__ << " - SDAI_Model_contents::CreateEntityInstance() unimplemented!" << std::endl;
(void) Type; //unused
return 0;
}
void SDAI_Model_contents::AddInstance( const SDAI_DAObject_SDAI_ptr & appInst ) {
_instances.contents_()->Append( appInst );
}
void SDAI_Model_contents::RemoveInstance( SDAI_DAObject_SDAI_ptr & appInst ) {
_instances.contents_()->Remove( _instances.contents_()->Index( appInst ) );
}
#ifdef SDAI_CPP_LATE_BINDING
#if 0 // for now
Any_var
SDAI_Model_contents::GetEntity_extent( const std::string & entityName ) {
}
const Any_var
SDAI_Model_contents::GetEntity_extent( const std::string & entityName ) const {
}
Any_var
SDAI_Model_contents::GetEntity_extent( const Entity_ptr & ep ) {
}
const Any_var
SDAI_Model_contents::GetEntity_extent( const Entity_ptr & ep ) const {
}
#endif
/* Function:
The GetEntity_extent function shall retrieve an entity folder from
the folders attribute within the contents attribute of the receiver.
This folder shall contain all of the instances of a particular type
and its subtypes within the model. The type may be specified
indirectly by the entityName parameter or directly by the entity.
Subsequent access to the returned aggregate shall be restricted to
read-only functionality.
Output:
This function shall return an aggregate handle used as an argument
for subsequent SDAI function calls. Otherwise, this function shall
return a null handle.
Possible error indicators:
sdaiSS_NOPN // Session not open
sdaiRP_NOPN // Repository not open
sdaiMO_NEXS // SDAI-model does not exist
sdaiED_NDEF // Entity definition unknown in this model
sdaiSY_ERR // Underlying system error
Origin: Convenience function
*/
#endif
//////// END SDAI_Model_contents