#include <AG.h>
Inheritance diagram for AG:


Public Methods | |
| AG (Id id, Timeline *timeline=NULL, string type="") | |
| A constructor. More... | |
| ~AG () | |
| A destructor. More... | |
| Id | getId () const | 
| Get the id of the AG. More... | |
| void | setType (string type) | 
| Set Type. More... | |
| string | getType () const | 
| Get Type. More... | |
| Timeline* | getTimeline () const | 
| Get Timeline. More... | |
| void | addAnchor (Anchor *a) | 
| Add an anchor. More... | |
| void | deleteAnchor (Anchor *a) throw (AGException) | 
| Delete an anchor. More... | |
| void | setAnchorOffset (Anchor *, Offset) | 
| Set an anchor's offset to the specified value. More... | |
| Anchor* | splitAnchor (Anchor *original) | 
| void | add (Annotation *anchor) | 
| Add a new annotation to the AG. More... | |
| Id | createAnnotation (Id id, Anchor *anchor1, Anchor *anchor2, AnnotationType annotationType) throw (AGException) | 
| void | setFeature (Id id, FeatureName featureName, FeatureValue featureValue) | 
| bool | existsFeature (Id id, FeatureName featureName) | 
| void | deleteFeature (Id id, FeatureName featureName) | 
| string | getFeature (Id id, FeatureName featureName) | 
| StringSet | getFeatureNames (Id id) | 
| void | getAnnotationFeatureNames (StringSet &S) | 
| void | getAnnotationTypes (StringSet &S) | 
| void | setFeatures (Id id, Features features) | 
| Features | getFeatures (Id id) | 
| void | unsetFeatures (Id id) | 
| AnchorId | createAnchor (Id id, Offset offset, Unit unit, string signals) | 
| AnchorId | createAnchor (Id id, Unit unit, string signals) | 
| Offset | getAnchorOffset (Anchor *anchor) | 
| Get the offset of the specified anchor. More... | |
| Annotation* | copyAnnotation (const Annotation *annotation) | 
| Annotation* | splitAnnotation (Annotation *original) | 
| AnnotationSet | nSplitAnnotation (Annotation *original, int n) | 
| void | deleteAnnotation (Annotation *annotation) | 
| Delete the annotation from the AG. More... | |
| void | setStartAnchor (Annotation *annotation, Anchor *anchor) | 
| Set the start anchor of an annotation to the specified anchor. More... | |
| void | setEndAnchor (Annotation *annotation, Anchor *anchor) | 
| Set the end anchor of an annotation to the specified anchor. More... | |
| void | unsetAnchorOffset (Anchor *a) | 
| Unset the offset of the specified anchor. More... | |
| void | setFeature (Annotation *, const String &, const String &) | 
| Set the specified feature of the annotation to this value. More... | |
| AnchorSeq* | getAnchorSet () | 
| Get the set of anchors, sorted by offsets. More... | |
| Annotation* | getById (const Id &id) throw (AGException) | 
| Get the annotation reference by its id. More... | |
| Anchor* | getAnchorById (const Id &id) throw (AGException) | 
| Get the anchor reference by its id. More... | |
| AnchorSet | getAnchorSetByOffset (Offset offset, double epsilon=0.0) | 
| Get anchors with the specified offset. More... | |
| AnnotationSet | getAnnotationSetByType (const String &t) | 
| Get the annotations of type t. More... | |
| AnnotationSet | getAnnotationSetByOffset (Offset o) | 
| AnnotationSet | getAnnotationSetByFeature (const String &f, const String &v) | 
| Get the annotations with value of feature f equals to v. More... | |
| AnnotationSet | getIncomingAnnotationSet (Anchor *a) | 
| Get the incoming annotations to the specified node. More... | |
| AnnotationSet | getIncomingAnnotationSetByType (Anchor *a, AnnotationType t) | 
| Get the incoming annotations of this type to the specified node. More... | |
| AnnotationSet | getOutgoingAnnotationSet (Anchor *a) | 
| Get the outgoing annotations from the specified node. More... | |
| AnnotationSet | getOutgoingAnnotationSetByType (Anchor *a, AnnotationType t) | 
| Get the outgoing annotations of this type from the specified node. More... | |
| Offset | getNearestOffset (Offset o) | 
| Get the nearest used offset to the specified offset. More... | |
| AnnotationSeq | getAnnotationSeqByOffset (Offset begin=0.0, Offset end=0.0) | 
| Annotation* | getAnnotationByOffset (Offset offset) | 
| AnchorSet | getAnchorSetNearestOffset (Offset offset) | 
| Get all anchors whose offset is the nearest to the specified offset. More... | |
| list<string> | storeSQLs (AGSetId agSetId, FeatureNameSet features) | 
| Create list of SQLs used to save the metadata to the DB server. More... | |
| string | toString () | 
| Dump the AG in AIF format. More... | |
      
  | 
  
| 
 A constructor. 
  | 
  
      
  | 
  
| 
 A destructor. 
  | 
  
      
  | 
  
| 
 Add a new annotation to the AG. 
  | 
  
      
  | 
  
| 
 Add an anchor. 
  | 
  
      
  | 
  
| 
 Clone an annotation. Make a copy of the specified annotation, assign the new annotation a new AnnotationId. 
 
  | 
  
      
  | 
  
| 
 Create an anchor with specified unit and signals. 
 
 
  | 
  
      
  | 
  
| 
 Create an anchor with specified offset, unit and signals. 
 
 
  | 
  
      
  | 
  
| 
 Create a new annotation. 
 
 
  | 
  
      
  | 
  
| 
 Delete an anchor. 
  | 
  
      
  | 
  
| 
 Delete the annotation from the AG. 
  | 
  
      
  | 
  
| 
 Delete the specified feature from the metadata or annotation. 
  | 
  
      
  | 
  
| 
 Test if a feature exists in the metadata or annotation. 
  | 
  
      
  | 
  
| 
 Get the anchor reference by its id. 
  | 
  
      
  | 
  
| 
 Get the offset of the specified anchor. 
  | 
  
      
  | 
  
| 
 Get the set of anchors, sorted by offsets. 
  | 
  
      
  | 
  
| 
 Get anchors with the specified offset. 
  | 
  
      
  | 
  
| 
 Get all anchors whose offset is the nearest to the specified offset. 
  | 
  
      
  | 
  
| 
 Get one of the annotations which overlap a particular time offset. Same as getByOffset except that getAnnotationByOffset returns only one qualified annotation while getByOffset returns all of them. getAnnotationByOffset is signaficantly faster than getByOffset. Should be favored over getAnnotationSetByOffset whenever possible. 
  | 
  
      
  | 
  
| 
 Get all feature names of all annotations in this AG. 
  | 
  
      
  | 
  
| 
 Get all annotations with its start anchor offset in between the specified values. Get all annotations with its start anchor offset in between the specified values. If both values are 0, return all annotations in the AG. 
 
  | 
  
      
  | 
  
| 
 Get the annotations with value of feature f equals to v. 
  | 
  
      
  | 
  
| 
 Get the annotations that overlap a particular time offset. Get all annotations whose start anchor offset is smaller than or equal to the given offset AND end anchor offset is greater than or equal to the given offet.  | 
  
      
  | 
  
| 
 Get the annotations of type t. 
  | 
  
      
  | 
  
| 
 Get types of all annotations in this AG. 
  | 
  
      
  | 
  
| 
 Get the annotation reference by its id. 
  | 
  
      
  | 
  
| 
 Get the value of specified feature in the metadata or annotation. 
  | 
  
      
  | 
  
| 
 Get all feature names from the metadata or annotation. 
 
  | 
  
      
  | 
  
| 
 Get all the features. returns all features in a single string in Dublin Core Structured Values DCSV (Cox & Iannella) format. For example, "name=Stone Philips;phone=(215)555-8888;age=40" 
  | 
  
      
  | 
  
| 
 Get the id of the AG. 
  | 
  
      
  | 
  
| 
 Get the incoming annotations to the specified node. 
  | 
  
      
  | 
  
| 
 Get the incoming annotations of this type to the specified node. 
  | 
  
      
  | 
  
| 
 Get the nearest used offset to the specified offset. 
  | 
  
      
  | 
  
| 
 Get the outgoing annotations from the specified node. 
  | 
  
      
  | 
  
| 
 Get the outgoing annotations of this type from the specified node. 
  | 
  
      
  | 
  
| 
 Get Timeline. 
  | 
  
      
  | 
  
| 
 Get Type. 
  | 
  
      
  | 
  
| 
 Split an annotation to n annotations. A version of split which does the split operation n-1 times, i.e. split the original annotation into n annotations. 
 
 
  | 
  
      
  | 
  
| 
 Set an anchor's offset to the specified value. 
  | 
  
      
  | 
  
| 
 Set the end anchor of an annotation to the specified anchor. 
  | 
  
      
  | 
  
| 
 Set the specified feature of the annotation to this value. 
  | 
  
      
  | 
  
| 
 Set feature value of the metadata or annotation. 
  | 
  
      
  | 
  
| 
 Set multiple features in a single string. Set multiple features in a single string in Dublin Core Structured Values DCSV (Cox & Iannella) format. For example, "name=Stone Philips;phone=(215)555-8888;age=40" 
  | 
  
      
  | 
  
| 
 Set the start anchor of an annotation to the specified anchor. 
  | 
  
      
  | 
  
| 
 Set Type. 
  | 
  
      
  | 
  
| 
 Split an anchor in two. Split an anchor a in two, creating a new anchor a' having the same offset as the original one. Anchor a has all the incoming annotations, while anchor a' has all the outgoing annotations. The new anchor a' is returned.  | 
  
      
  | 
  
| 
 Split an annotation a in two. Split an annotation a in two, creating a new annotation a' having the same label data as the original one. The two annotations a, a' connect head-to-tail at a new anchor. The new annotation and anchor have identifiers taken from the specified identifier spaces. The new anchor is unanchored, i.e. has no offset. 
 
  | 
  
      
  | 
  
| 
 Create list of SQLs used to save the metadata to the DB server. 
  | 
  
      
  | 
  
| 
 Dump the AG in AIF format. 
  | 
  
      
  | 
  
| 
 Unset the offset of the specified anchor. 
  | 
  
      
  | 
  
| 
 Unset all features in the metadata or annotation. Set all the features to empty string. 
  | 
  
1.2.7 written by Dimitri van Heesch,
 © 1997-2001