Proud::IDbCacheServerDelegate2 Class Referenceabstract

Public Member Functions

virtual void OnError (ErrorInfo *errorInfo)=0
 
virtual void OnWarning (ErrorInfo *errorInfo)=0
 
virtual void OnException (const Exception &e)=0
 
virtual void OnDbmsWriteDone (DbmsWritePropNodePendType)
 

Detailed Description

This is delegate object that handle callback event from CDbCacheServer2 or callback method which developer has to realize.

Member Function Documentation

virtual void Proud::IDbCacheServerDelegate2::OnDbmsWriteDone ( DbmsWritePropNodePendType  )
inlinevirtual

Direct writing process to DBMS is running asynchronously in DB cache server2. When asynchronous writting process has finished, this method will callback from internal thread in DB cache server.

  • We recommend to use override keyword on Visual Studio 2005 or above.
    Parameters
    typeSort of finished DBMS history (PropNode)
virtual void Proud::IDbCacheServerDelegate2::OnError ( ErrorInfo errorInfo)
pure virtual

TODO:translate needed It is called when an internal error occurs is the information on an error. If you use ErrorInfo::ToString(), you can see the detailed information of the problem.

virtual void Proud::IDbCacheServerDelegate2::OnException ( const Exception e)
pure virtual

Merge to Proud.Exception

  • It handle error that occur from user code.
  • User realize things that user needed.
  • You can use Exceptiontype that obtain Exception object.
  • It process _com_error, void*, std::exception, etc. Also there is OnUnhandledException() that handle catch(...)
  • void* can obtain exceptional object type by casting. For example, it uses obtaining MFC CException.
virtual void Proud::IDbCacheServerDelegate2::OnWarning ( ErrorInfo errorInfo)
pure virtual

TODO:translate needed It is called when an internal warning occurs. This reports a problem with the level lower than an error.

Parameters
errorInfoThis is the information on an error. If you use ErrorInfo::ToString(), you can see the detailed information of the problem