//*-- Author : Valeriy Onuchin 11/09/2000 
//
//
////////////////////////////////////////////////////////////////////////////////
//
// rooPersistentDataObject corresponds to Persistent_Data_Object Class
//
// The class rooPersistentDataObject is the abstract base class for classes 
// that serve as self-describing data types for structured persistent data.
//
//______________________________________________________________________________
//
//                About Persistent-Data Objects
//
// An instance of any concrete class derived from rooPersistentDataObject is a
// self-describing object because it contains persistent data and a descriptor 
// that provides detailed information about the structure and content of that 
// data. Because this class is abstract, you never instantiate it; instead, 
// you work with instances of its concrete derived classes. You should not 
// derive your own classes from this class.
//
// The various concrete derived classes contain the following kinds of 
// persistent data:
//
//    rooClassObject       represents persistent objects and 
//                          embedded objects.
//    rooVArrayObject      represents VArray attributes in the data of 
//                         persistent objects.
//    rooRelationshipObject represents relationships between persistent objects.
//
//______________________________________________________________________________
//
//                Related Classes
//
// Active Schema represents persistent data with additional classes that are 
// not derived from rooPersistentDataObject:
//
//    rooNumericValue   represents persistent data of basic numeric types.
//    rooStringValue    represents persistent data of string classes.

#include "rooObjy.h"
#include <ooas.h>
#include <oo.h>

ClassImp(rooPersistentDataObject)

////////////////////////////////////////////////////////////////////////////////
//______________________________________________________________________________
 rooPersistentDataObject::rooPersistentDataObject()
{
   // efault  ctor., for internal use only
   
   fImp = 0;
}

//______________________________________________________________________________
 rooPersistentDataObject::~rooPersistentDataObject()
{
   // dtor., for internal use only
   
   fImp = 0;
}

//______________________________________________________________________________
 Bool_t rooPersistentDataObject::is_class_object() const
{
   // Returns kTRUE if this persistent-data object is a class object; 
   // otherwise, kFALSE.

   return fImp ? ((Persistent_Data_Object*)fImp)->is_class_object() : 0;
}

//______________________________________________________________________________
 Bool_t rooPersistentDataObject::is_varray_object() const
{
   // Returns kTRUE if this persistent-data object is a VArray object; 
   // otherwise, kFALSE.

   return fImp ? ((Persistent_Data_Object*)fImp)->is_varray_object() : 0;
}

//______________________________________________________________________________
 Bool_t rooPersistentDataObject::is_relationship_object() const
{
   // Returns kTRUE if this persistent-data object is a relationship object; 
   // otherwise, kFALSE.

   return fImp ? ((Persistent_Data_Object*)fImp)->is_relationship_object() : 0;
}

//______________________________________________________________________________
 void  rooPersistentDataObject::enable_auto_update()
{
   // Enables automatic updating of persistent-data objects.

   Persistent_Data_Object::enable_auto_update();
}

//______________________________________________________________________________
 void  rooPersistentDataObject::disable_auto_update()
{
   // Disables automatic updating of persistent-data objects.

   Persistent_Data_Object::disable_auto_update();
}

//______________________________________________________________________________
 Bool_t rooPersistentDataObject::auto_update_is_enabled()
{
   // Returns kTRUE if automatic updating of persistent-data objects is enabled; 
   // otherwise, kFALSE

   return Persistent_Data_Object::auto_update_is_enabled();
}

//______________________________________________________________________________
rooPersistentDataObject::operator size_t() const
{
   // Returns Zero if this persistent-data object is null; otherwise, nonzero.

   return fImp ? (size_t)(*((Persistent_Data_Object*)fImp)) : 0;
}



ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.