Public Member Functions | |
SalomeApp_DataModelSync (_PTR(Study), SUIT_DataObject *) | |
bool | isEqual (const kerPtr &, const suitPtr &) const |
kerPtr | nullSrc () const |
suitPtr | nullTrg () const |
suitPtr | createItem (const kerPtr &, const suitPtr &, const suitPtr &) const |
void | updateItem (const kerPtr &, const suitPtr &) const |
void | deleteItemWithChildren (const suitPtr &) const |
QList< kerPtr > | children (const kerPtr &) const |
QList< suitPtr > | children (const suitPtr &) const |
suitPtr | parent (const suitPtr &) const |
Private Member Functions | |
bool | isCorrect (const kerPtr &) const |
_PTR (Study) myStudy | |
Private Attributes | |
SUIT_DataObject * | myRoot |
Auxiliary class for synchronizing tree of kernel objects and SUIT_DataObjects
SalomeApp_DataModelSync::SalomeApp_DataModelSync | ( | _PTR(Study) | aStudy, |
SUIT_DataObject * | aRoot | ||
) |
Constructor
|
private |
Fills list with children of kernel object
obj | - kernel object |
ch | - list to be filled |
References _PTR().
Fills list with children of SUIT object
p | - SUIT object |
ch | - list to be filled |
References SUIT_DataObject::children().
suitPtr SalomeApp_DataModelSync::createItem | ( | const kerPtr & | so, |
const suitPtr & | parent, | ||
const suitPtr & | after | ||
) | const |
Creates SUIT object by KERNEL object
so | - corresponding KERNEL object |
parent | - parent for SUIT object |
after | - previous sibling for SUIT object |
prepend | - SUIT object must be added to start of children list |
References _PTR(), SUIT_DataObject::appendChild(), SUIT_DataObject::childPos(), SUIT_DataObject::insertChild(), isCorrect(), and myRoot.
|
private |
References _PTR().
p | - kernel object |
q | - suit object |
References _PTR(), SalomeApp_DataObject::entry(), and isCorrect().
kerPtr SalomeApp_DataModelSync::nullSrc | ( | ) | const |
suitPtr SalomeApp_DataModelSync::nullTrg | ( | ) | const |
Updates SUIT object
p | - SUIT object |
|
private |