Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

JObject Class Reference

#include <Object.hpp>

Inheritance diagram for JObject::

Stream InStream OutStream IOStream JFileInStream IOStream JFileOutStream JFileIOStream BinaryFileInStream JFileIOStream BinaryFileOutStream BinaryFileIOStream DataFileInStream ImageFileInStream SoundFileInStream BinaryFileIOStream DataFileOutStream ImageFileOutStream SoundFileOutStream List of all members.

Public Methods

 JObject ()
virtual ~JObject ()
StringgetClass () const
int hashCode ()
void notify ()
void notifyAll ()
bool equals (JObject &obj)
StringtoString ()
bool isKindOf (JObject &obj) const
bool isDerivedFrom (JObject &obj) const
 JObject ()
 ~JObject ()
JString getClass () const
JString toString ()
hashCode_t hashCode () const
void notify ()
void notifyAll ()
bool equals (const JObject &obj)
bool isKindOf (const JObject &obj) const
bool isDerivedFrom (const JObject &obj) const
bool isRelatedTo (JObject &obj) const

Public Attributes

serial_t SerializationID
char * ClassName
char * ClassAuthor
char * ClassVersion
char * ClassInherited
char * ClassName
char * ClassAuthor
char * ClassVersion
char * ClassInherited

Private Methods

 JObject (const JObject &JObjectSrc)
void operator= (const JObject &JObjectSrc)
 JObject (const JObject &JObjectSrc)
void operator= (const JObject &JObjectSrc)

Constructor & Destructor Documentation

JObject::JObject const JObject &    JObjectSrc [private]
 

JObject::JObject   [inline]
 

Definition at line 30 of file Object.hpp.

00030               : MC_SerializeConstructor( SerialID_JObject,
00031         "JObject;", J2K_Author, "1.0", NULL ) {
00032     }

JObject::~JObject   [virtual]
 

Definition at line 6 of file Object.cpp.

00006 { }

JObject::JObject const JObject &    JObjectSrc [private]
 

JObject::JObject   [inline]
 

Definition at line 33 of file Object.hpp.

00033               : MC_SerializeConstructor( SerialID_JObject,
00034         "JObject;", J2K_Author, "1.0", NULL )
00035     {
00036     }

JObject::~JObject   [inline]
 

Definition at line 38 of file Object.hpp.

00039     {
00040         MC_SerializeDestructor()
00041     }


Member Function Documentation

bool JObject::equals const JObject &    obj [inline]
 

Definition at line 43 of file Object.hpp.

BOOL JObject::equals JObject &    obj
 

Definition at line 18 of file Object.cpp.

00018                                         {
00019        if ( isKindOf( obj ) == 0 ) { return 0; }
00020        return (( hashCode() == obj.hashCode() );
00021     }

JString JObject::getClass   const [inline]
 

Definition at line 43 of file Object.hpp.

String & JObject::getClass   const
 

Definition at line 8 of file Object.cpp.

00008                                     {
00009        String s( ClassName );
00010        return s;
00011     }

hashCode_t JObject::hashCode   const [inline]
 

Definition at line 43 of file Object.hpp.

int JObject::hashCode  
 

Definition at line 13 of file Object.cpp.

Referenced by equals(), and toString().

00013 { return 1; }

bool JObject::isDerivedFrom const JObject &    obj const [inline]
 

Definition at line 43 of file Object.hpp.

BOOL JObject::isDerivedFrom JObject &    obj const
 

Definition at line 35 of file Object.cpp.

00035                                                      {
00036        // Pointer on the similitude
00037        char* pDest = strstr( obj.ClassName, ClassInherited )
00038 
00039        // Calculated the OffSet
00040        long result = pDest - obj.Inherited + 1;
00041 
00042        return (result > 0) 
00043     }

bool JObject::isKindOf const JObject &    obj const [inline]
 

Definition at line 43 of file Object.hpp.

BOOL JObject::isKindOf JObject &    obj const
 

Definition at line 31 of file Object.cpp.

Referenced by equals(), and isDerivedFrom().

00031                                                 {
00032        return ( !strcmp( ClassName, obj.ClassName ) );
00033     }

BOOL JObject::isRelatedTo JObject &    obj const [inline]
 

Definition at line 43 of file Object.hpp.

void JObject::notify   [inline]
 

Definition at line 43 of file Object.hpp.

void JObject::notify  
 

Definition at line 14 of file Object.cpp.

00014 { }

void JObject::notifyAll   [inline]
 

Definition at line 43 of file Object.hpp.

void JObject::notifyAll  
 

Definition at line 15 of file Object.cpp.

00015 { }

void JObject::operator= const JObject &    JObjectSrc [private]
 

void JObject::operator= const JObject &    JObjectSrc [private]
 

JString JObject::toString   [inline]
 

Definition at line 43 of file Object.hpp.

String & JObject::toString  
 

Definition at line 23 of file Object.cpp.

00023                               {
00024        char* buf = new char[128];
00025        sprintf( buf, "%s@%.8x", ClassName, hashCode() );
00026        String s( buf );
00027        return s;
00028     }


Member Data Documentation

char* JObject::ClassAuthor
 

Definition at line 20 of file Object.hpp.

char* JObject::ClassAuthor
 

Definition at line 17 of file Object.hpp.

char* JObject::ClassInherited
 

Definition at line 20 of file Object.hpp.

char* JObject::ClassInherited
 

Definition at line 17 of file Object.hpp.

char* JObject::ClassName
 

Definition at line 20 of file Object.hpp.

char* JObject::ClassName
 

Definition at line 17 of file Object.hpp.

Referenced by isDerivedFrom(), and isKindOf().

char* JObject::ClassVersion
 

Definition at line 20 of file Object.hpp.

char* JObject::ClassVersion
 

Definition at line 17 of file Object.hpp.

serial_t JObject::SerializationID
 

Definition at line 20 of file Object.hpp.


The documentation for this class was generated from the following files:
Generated on Sun Oct 14 18:48:53 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001