[Classes] [Prev] [Next] [Methods]

CObjectRWC

Methods Index

Heritage
Description
Usage
Public Data Members
Protected Data Members
Public Methods
Constructor, Destructor, and Initializer Methods
State Query Methods
Rogue Wave Persistence Methods
Protected Methods
State Initialize Methods

CObjectRWC


Heritage

Superclass: RWCollectable

Subclasses: CNotifier


Description

CObjectRWC is an abstract class that should not be instantiated. It serves as a place holder for protocol that pertains to the entire class/object hierarchy. Since CObjectRWC inherits from RWCollectable, it and all classes that inherit from it can be used in Rogue Wave collections.

The persistence-related methods inherited from RWCollectable are overridden to cause an assert. This means that, in general, objects in the XVT-Power++ hierarchy cannot be used with the Rogue Wave persistence mechanism. XVT realizes this would be useful and intends to add this functionality in a future release. These methods can be overridden in user-defined classes where inheritance is well-understood (CDocument is a good example).


Usage

This is an abstract class.


Protected Data Members

long itsResourceContainerId; The resource container ID
long itsResourceId; The resource ID of the object
static CGlobalClassLib* itsG Pointer to global CGloblClassLib object
static CGlobalUser* itsGU Pointer to global CGlobalUser


Public Methods

Constructor, Destructor, and Initializer Methods

CObjectRWC();
CObjectRWC(const CObjectRWC& theObject);
CObjectRWC& operator= (const CObjectRWC& theObject);
virtual ~CObjectRWC();

Global Object Methods

These methods are managed by CBoss.

static CGlobalClassLib * GetG(void);  
static CGlobalUser * GetGU(void); 

State Query Methods

long GetResourceContainerId(void) const;
long GetResourceId(void) const;

Rogue Wave Persistence Methods

virtual RWSpace binaryStoreSize() const;
virtual void restoreGuts(RWvistream& theStream);
virtual void restoreGuts(RWFile& theFile);
virtual void saveGuts(RWvostream& theStream) const;
virtual void saveGuts(RWFile& theFile) const;

Protected Methods

State Initialize Methods

void SetResourceContainerId(long theResourceContainerId);
void SetResourceId(long theResourceId);
static void  SetG(CGlobalClassLib *);  
static void  SetGU(CGlobalUser *); 


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.