Proud::CLoadedData2 Class Reference

Public Member Functions

PROUDSRV_API CLoadedData2 (const CLoadedData2 &from)
 
PROUDSRV_API Proud::ErrorType MovePropNode (CLoadedData2 &destForest, CPropNodePtr nodeToMove, CPropNodePtr destParentNode)
 
PROUDSRV_API Proud::ErrorType InsertChild (CPropNodePtr parent, CPropNodePtr newNode)
 
virtual PROUDSRV_API
Proud::ErrorType 
RemoveNode (CPropNodePtr node, bool addremovelist=true)
 
virtual PROUDSRV_API
Proud::ErrorType 
RemoveNode (Proud::Guid removeUUID, bool addremovelist=true)
 
virtual PROUDSRV_API CPropNodePtr GetNode (const Guid &guid)
 
virtual PROUDSRV_API CPropNodePtr GetRootNode ()
 
PROUDSRV_API Guid GetRootUUID ()
 
PROUDSRV_API Guid GetSessionGuid () const
 
PROUDSRV_API void SetSessionGuid (Guid val)
 
PROUDSRV_API CLoadedData2Ptr Clone ()
 
PROUDSRV_API void ToByteArray (ByteArray &output)
 
PROUDSRV_API void FromByteArray (const ByteArray &input)
 
virtual PROUDSRV_API void _INTERNAL_ClearChangeNode ()
 
virtual PROUDSRV_API void _INTERNAL_ChangeToByteArray (ByteArray &outArray)
 
virtual PROUDSRV_API void _INTERNAL_FromByteArrayToChangeList (const ByteArray &inArray)
 
virtual PROUDSRV_API const
PropNodeList
_INTERNAL_GetRemoveNodeList () const
 
virtual PROUDSRV_API
Proud::ErrorType 
_INTERNAL_AddRemovePropNodeList (Proud::Guid removeUUID)
 

Protected Member Functions

virtual PROUDSRV_API void AssertThreadID (eAccessMode eMode) const
 
virtual PROUDSRV_API void ClearThreadID () const
 
virtual PROUDSRV_API void Change_Serialize (CMessage &msg, bool isReading)
 
virtual PROUDSRV_API CPropNodePtr GetRemoveNode (Proud::Guid removeUUID)
 
virtual PROUDSRV_API void Serialize (CMessage &msg, bool isReading)
 
PROUDSRV_API void CopyTo_NoChildren (CLoadedData2 *output)
 

Member Function Documentation

virtual PROUDSRV_API Proud::ErrorType Proud::CLoadedData2::_INTERNAL_AddRemovePropNodeList ( Proud::Guid  removeUUID)
virtual

Function that use internally at DBCacheServer2.

  • Do not use.
virtual PROUDSRV_API void Proud::CLoadedData2::_INTERNAL_ChangeToByteArray ( ByteArray outArray)
virtual

Function that use internally at DBCacheServer2.

  • Do not use.
virtual PROUDSRV_API void Proud::CLoadedData2::_INTERNAL_ClearChangeNode ( )
virtual

Function that use internally at DBCacheServer2.

  • Do not use.
virtual PROUDSRV_API void Proud::CLoadedData2::_INTERNAL_FromByteArrayToChangeList ( const ByteArray inArray)
virtual

Function that use internally at DBCacheServer2.

  • Do not use.
virtual PROUDSRV_API const PropNodeList* Proud::CLoadedData2::_INTERNAL_GetRemoveNodeList ( ) const
virtual

Function that use internally at DBCacheServer2.

  • Do not use.
PROUDSRV_API CLoadedData2Ptr Proud::CLoadedData2::Clone ( )

Create other object to copy data.

PROUDSRV_API void Proud::CLoadedData2::FromByteArray ( const ByteArray input)

Copy data from input.

Parameters
ByteArrayobject that has input data.
virtual PROUDSRV_API CPropNodePtr Proud::CLoadedData2::GetNode ( const Guid guid)
virtual

Return node that as guid. It will use for searching.

Parameters
UUIDof node that find out guid
Returns
If it succeed, return node. If it is NULL, it is not exsit node.
virtual PROUDSRV_API CPropNodePtr Proud::CLoadedData2::GetRootNode ( )
virtual

It returns top data node that this object owned.

Returns
If it is succeed, return top node. If it is failed, return an empty CpropNodePtr.
PROUDSRV_API Guid Proud::CLoadedData2::GetRootUUID ( )

It returns top data node that this object owned.

PROUDSRV_API Guid Proud::CLoadedData2::GetSessionGuid ( ) const

TODO:translate needed.

PROUDSRV_API Proud::ErrorType Proud::CLoadedData2::InsertChild ( CPropNodePtr  parent,
CPropNodePtr  newNode 
)

Enters newNode as the last child node of parent. If parent=NULL then newNode will be added as the top node. If the newNode already has other child nodes then all of them will enter CPropForest all together.

Parameters
parentIf it is equal to NULL then it will be attached as the last node of the top most node of CPropTree.
newNodeThe node to be added newly. It must not be dependent to any CPropForest. If so, an error value will be returned.
Returns
Returns ErrorType_Ok if successfuly added. Otherwise, a different error value will be returned.
PROUDSRV_API Proud::ErrorType Proud::CLoadedData2::MovePropNode ( CLoadedData2 destForest,
CPropNodePtr  nodeToMove,
CPropNodePtr  destParentNode 
)

Move nodetoMove node to the lower node of destparentNode of destForest. OwnerUUID,RootUUID of nodeToMove is changed and RootUUID of the lower node of nodeToMove is changed to RootUUID of destForest

Parameters
destForestForest where destParentNode belongs to
nodeToMove이동시킬 노드 Node to be moved
destParentNodeOwner node of the node to be moved
Returns
When moved successfully, it returns ErrorType_Ok. Otherwise another error value is returned.
virtual PROUDSRV_API Proud::ErrorType Proud::CLoadedData2::RemoveNode ( CPropNodePtr  node,
bool  addremovelist = true 
)
virtual

TODO:translate needed. Separate the CPropNode object already attached to this object. The child of the separated node is separated from CPropForest. However, the children of the separated node still maintain the parent and child relationship with the node.

Parameters
nodeNode to be separated. It must be subordinated to this CPropForest.
addremovelistThis is whether to add to removePropNodelist. After setting it to true and calling UpdateData, it is automatically deleted from DBMS.
Returns
When deleted successfully, it returns ErrorType_Ok. Otherwise another error value is returned.
virtual PROUDSRV_API Proud::ErrorType Proud::CLoadedData2::RemoveNode ( Proud::Guid  removeUUID,
bool  addremovelist = true 
)
virtual

It has the same function as RemoveNode(node) but operates as UUID.

Parameters
NodeUUID to be deleted
Thisis whether to add to removePropNodelist. After setting it to true and calling UpdateData, it is automatically deleted from DBMS.
Returns
When deleted successfully, it returns ErrorType_Ok. Otherwise another error value is returned.
Parameters
removeUUIDNode UUID that will be removed.
Returns
Once it successfully removed then return ErrorType_Ok instead of this case, other error value will be returned.
PROUDSRV_API void Proud::CLoadedData2::SetSessionGuid ( Guid  val)

Set SessionGuid.

PROUDSRV_API void Proud::CLoadedData2::ToByteArray ( ByteArray output)

Put internal data to ByteArray.

Parameters
ByteArrayobject for output data.