Index

DKAnnotationDL

Purpose:

The DKAnnotationDL class represents the annotation information constructor (ANNOTATIONSTRUCT). The ANNOTATIONSTRUCT data structure provides information about an annotation affiliated with an object.

Heirarchy:

DkAnnotation
 

Class summary:

class DKAnnotationDL : public dkAnnotationExt 
  {
   DKAnnotationDL();
   DKAnnotationDL(long partId, long pageNumber, short Xcoordinate, short Ycoordinate);
   DKAnnotationDL(const DKAnnotationDL& aAnnot);
   virtual ~DKAnnotationDL();
   DKAnnotationDL&  operator=(const DKAnnotationDL& aAnnot);
   DKBoolean      operator==(const DKAnnotationDL& aAnnot) const;
   void           setPart(unsigned long aPartNumber);
   unsigned long  getPart();
};

Members:

Constructors and destructor
To create the annotation object in one step, the constructor can also take the parameters of the part ID of the affiliated object, the page number, and the X and Y coordinates.
   DKAnnotationDL();
   DKAnnotationDL(long partId, long pageNumber, 
   short Xcoordinate, short Ycoordinate);
   DKAnnotationDL(const DKAnnotationDL& aAnnot);
   virtual ~DKAnnotationDL();

Member functions

operator=
Assignment operator.
DKAnnotation&  operator=(const DKAnnotation& aAnnot);

operator==
Compares this operator with the specified object. Returns true if both objects have the same value for each data member.
DKBoolean operator==(const DKAnnotationDL& aAnnot) const;

setPart
Sets the part number of the affiliated object. Only positive values are valid.
void  setPart(unsigned long aPartNumber);

getPart
Gets the part number of the affiliated object.
unsigned long getPart();

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.