quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_mmedia.a #include <AnnotationIndex.h> static boolean diagnose(Integral::DEBUG debug_level); boolean add(Annotation* a); boolean deleteAnnotation(Annotation* anno); boolean existsAnnotation(const String& id); boolean existsAnchor(const String& id); float getNearestOffset(float offset); boolean getByOffset(float offset, DoubleLinkedList<Annotation>& list); Annotation* getAnnotationByOffset(float offset); boolean addFeature(Annotation* anno, const String& feature, const String& value); boolean deleteFeature(Annotation* anno, const String& feature); boolean existsFeature(const String& feature, const String& value);
description:String anno_name_00(L"Annotation1"); String unit_00(L"seconds"); String ancr_name_00(L"Anchor1"); String ancr_name_01(L"Anchor2"); float offset_00 = 2.409875; float offset_01 = 2.649875; Anchor ancr_00(ancr_name_00, offset_00, unit_00); Anchor ancr_01(ancr_name_01, offset_01, unit_00); String type_00(L"oh i see uh-huh"); String feat_00(L"feature1"); String value_00(L"value1"); Annotation anno_00(anno_name_00, &ancr_00, &ancr_01, type_00); anno_00.setFeature(feat_00, value_00); AnnotationIndex andx_00; andx_00.add(&anno_00);
static const String CLASS_NAME = L"AnnotationIndex";
static const String DEF_PARAM;
DoubleLinkedList<Anchor> ancrset_d;
HashTable<String, Anchor> ancr_by_id_d;
HashTable<Float, DoubleLinkedList<Anchor> > ancrset_by_offset_d;
HashTable<String, Annotation> anno_by_id_d;
HashTable<String, DoubleLinkedList<Annotation> > anno_by_type_d;
HashTable<Float, DoubleLinkedList<Annotation> > start_by_offset_d;
HashTable<Float, DoubleLinkedList<Annotation> > end_by_offset_d;
HashTable<HashKey<Anchor>, DoubleLinkedList<Annotation> > incoming_d;
HashTable<HashKey<Anchor>, DoubleLinkedList<Annotation> > outgoing_d;
HashTable<String, DoubleLinkedList<Annotation> > by_feature_d;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_d;
static const String& name();
boolean debug(const unichar* msg) const;
static boolean setDebug(Integral::DEBUG arg);
static boolean diagnose(Integral::DEBUG debug_level);
~AnnotationIndex();
AnnotationIndex();
AnnotationIndex(const AnnotationIndex& arg);
boolean assign(const AnnotationIndex& arg);
not present.
long sofSize() const;
boolean read(Sof& sof, long tag);
boolean write(Sof& sof, long tag) const;
boolean read(Sof& sof, long tag, const String& name);
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean write(Sof& sof, long tag, const String& name) const;
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const AnnotationIndex& arg) const;
static void* operator new(size_t arg);
static void* operator new[](size_t arg);
static void operator delete(void* arg);
static void operator delete[](void* arg);
static boolean setGrowSize(long arg);
boolean clear(Integral::CMODE cmode = Integral::DEF_CMODE);
boolean existsAnchor(const String& id);
float getNearestOffset(float offset);
boolean getByOffset(float offset, DoubleLinkedList<Annotation>& list);
boolean add(Annotation* a);
boolean deleteAnnotation(Annotation* anno);
boolean existsAnnotation(const String& id);
Annotation* getAnnotationByOffset(float offset);
boolean addFeature(Annotation* anno, const String& feature, const String& value);
boolean deleteFeature(Annotation* anno, const String& feature);
boolean existsFeature(const String& feature, const String& value);
friend class AnnotationGraph;
boolean addAnchor(Anchor* ancr);
boolean deleteAnchor(Anchor*ancr);