| |
September 2002 Hartnäckiger ZustandcService: C++-Diagramm 4-11 4 Pid * get_pid()constthrow (CORBA::SystemException); ShortPid * get_short_pid()constthrow (CORBA::SystemException); CORBA::Boolean is_null()constthrow(); StorageHomeBase_ptr get_storage_home()const Throw (CORBA::SystemException); statisches StorageObjectRef _ duplicate( Hinweis StorageObjectRef ); statisches StorageObjectRef _ downcast( Hinweis StorageObjectRef ); //... }; } Anmerkung - C++-namespaces werden in dieser Spezifikation benutzt, um abgebildetes IDL darzustellen Module. Abhängig von dem Compiler des Ziels C++ und ORB-Implementierung ein Modul kann zu einem C++-namespace, zu einer Kategorie oder zu einem Präfix abgebildet werden. Die Kategorie CosPersistentState::StorageObject erklärt zwei reine virtuelle Funktionen als zählende Referenz, _ add_ref() und _ remove_ref() und übernimmt von CosPersistentState::StorageObjectBase namespace CosPersistentState { Kategorie StorageObject: allgemeines virtuelles StorageObjectBase { Öffentlichkeit: virtuelles Lücken_ add_ref() = 0; virtuelles Lücken_ remove_ref() = 0; // normales Diagramm der PSDL-Betriebe: virtuelles leeres destroy_object() Throw (SystemException) = 0; virtuelles Boolesches object_exists() Throw (SystemException) = 0; |  |
|
| |
|
|