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

JScore Class Reference

#include <Score.hpp>

List of all members.

Public Methods

__inline JScore ()
__inline JScore (ULONG pts)
__inline JScore (ULONG pts, const char *n)
__inline JScore (const JScore &src)
virtual __inline ~JScore ()
__inline void setName (const char *n)
__inline void setScore (ULONG pts)
__inline const char * getName ()
__inline ULONG getScore ()
__inline const JScore & operator= (const JScore &src)
__inline const JScore & operator== (const JScore &right)
__inline const JScore & operator> (const JScore &right)
__inline const JScore & operator< (const JScore &right)

Protected Attributes

ULONG score
char * name


Constructor & Destructor Documentation

__inline JScore::JScore  
 

Definition at line 6 of file Score.inl.

00007   : score( 0 ), name( " " ) { }

__inline JScore::JScore ULONG    pts
 

Definition at line 9 of file Score.inl.

00010   : score( pts ), name( " " ) { }

__inline JScore::JScore ULONG    pts,
const char *    n
 

Definition at line 12 of file Score.inl.

00013   : score( pts ), name( strdup( n ) ) { }

__inline JScore::JScore const JScore &    src
 

Definition at line 15 of file Score.inl.

00016   : score( src.score ), name( strdup( src.name ) ) { }

__inline JScore::~JScore   [virtual]
 

Definition at line 18 of file Score.inl.

00018                        {
00019   if ( name != NULL ) {
00020     delete [] name;
00021   }
00022 }


Member Function Documentation

__inline const char * JScore::getName  
 

Definition at line 56 of file Score.inl.

00057 {
00058   return name;
00059 }

__inline ULONG JScore::getScore  
 

Definition at line 61 of file Score.inl.

00062 {
00063   return score;
00064 }

__inline const JScore& JScore::operator< const JScore &    right
 

__inline const JScore & JScore::operator= const JScore &    src
 

Definition at line 24 of file Score.inl.

00025 {
00026   score = src.score;
00027   name  = strdup( src.name );
00028 }

__inline const JScore& JScore::operator== const JScore &    right
 

__inline const JScore& JScore::operator> const JScore &    right
 

__inline void JScore::setName const char *    n
 

Definition at line 46 of file Score.inl.

00047 {
00048   name = strdup( n );
00049 }

__inline void JScore::setScore ULONG    pts
 

Definition at line 51 of file Score.inl.

00052 {
00053   score = pts;
00054 }


Member Data Documentation

char* JScore::name [protected]
 

Definition at line 30 of file Score.hpp.

Referenced by operator=(), and operator==().

ULONG JScore::score [protected]
 

Definition at line 29 of file Score.hpp.

Referenced by operator<(), operator=(), operator==(), and operator>().


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