|
Public Member Functions |
| OCDM_Annotation () |
| OCDM_Annotation (const CDM_Object obj) |
| OCDM_Annotation (const class OCDM_Annotation &obj) |
| OCDM_Annotation (const char *type, const OCDM_SpanSet &Spans, const OCDM_AttributeSet &Attributes) |
| OCDM_Annotation (const char *type, const long start, const long end, const OCDM_AttributeSet &Attributes) |
OCDM_Annotation & | operator= (const class OCDM_Object &obj) |
| This is the default assignment operator.
|
OCDM_BOOL | AnnotationContainsPosition (const long Position) const |
| This function will check if the Annotation contains in any of its spans the specified position.
|
OCDM_BOOL | AnnotationMatchesRange (const long Start, const long End) const |
| This function will check if the Annotation contains a span that has the specified start and end offsets.
|
OCDM_BOOL | AttributeExists (const char *name) const |
| This function will return true if an Attribute with the specified name exists in the Annotation object.
|
int | CompareAnnotations (const OCDM_Annotation &Ann) const |
| This function will compare the Annotation in use and the Annotation defined.
|
void | DisplaceAnnotation (const long offset, const long displacement) |
| This function displases or "moves" the specified Annotation by "displacement" characters.
|
| OCDM_REF (OCDM_Attribute) GetAttribute(const char *name) const |
| OCDM_REF (OCDM_AttributeSet) GetAttributes(void) const |
| OCDM_REF (OCDM_Span) GetFirstSpan(void) const |
int | GetFirstSpanOffsets (long &start, long &end) const |
| OCDM_REF (OCDM_SpanSet) GetSpans(void) const |
void | PutAttribute (const OCDM_Attribute &Attr) |
| This function adds a new Attribute in the Annotation object we are currently use.
|
const char * | GetType (void) const |
void | ReconstructAnnotation (void) const |
| This function will construct a new Annotation object an replace the Annotation object in use with the new one.
|
void | RemoveAttribute (const char *name) |
| This function will remove the Attribute having as name the value of the "Name" parameter from the Annotation object in use, if such an Attribute exists.
|
void | AddSpan (const OCDM_Span &span) |
void | RemoveSpan (const long start, const long end) |
long | GetId (void) const |
| This function will return the Id of the Annotation object in use.
|
const char * | objectType (void) const |