-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPascalVocXMLSaver.h
More file actions
58 lines (47 loc) · 1.89 KB
/
Copy pathPascalVocXMLSaver.h
File metadata and controls
58 lines (47 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2016-2017 Annotator Team
#ifndef ANNOTATOR_ANNOTATORLIB_SAVER_PASCALVOCXMLSAVER_H
#define ANNOTATOR_ANNOTATORLIB_SAVER_PASCALVOCXMLSAVER_H
/************************************************************
PascalVocXMLSaver class header
************************************************************/
#include <AnnotatorLib/Storage/AbstractSaver.h>
#include <AnnotatorLib/annotatorlib_api.h>
#include <Poco/AutoPtr.h>
#include <Poco/DOM/Document.h>
#include <Poco/DOM/Element.h>
namespace AnnotatorLib {
class Frame;
}
/************************************************************/
/**
*
*/
class ANNOTATORLIB_API PascalVocXMLSaver
: public AnnotatorLib::Storage::AbstractSaver {
public:
void saveFrame(const AnnotatorLib::Session *session,
const shared_ptr<AnnotatorLib::Frame> frame);
void saveAnnotation(const AnnotatorLib::Annotation annotation) override;
void setPath(std::string path) override;
AnnotatorLib::StorageType getType() override;
void saveSession(const AnnotatorLib::Session *session) override;
virtual void saveProject(
std::shared_ptr<AnnotatorLib::Project> project) override;
bool close() override;
protected:
Poco::AutoPtr<Poco::XML::Element> fromObject(
const AnnotatorLib::Session *session,
const shared_ptr<AnnotatorLib::Object> object,
const shared_ptr<AnnotatorLib::Frame> frame);
std::string path;
std::shared_ptr<AnnotatorLib::Project> project;
Poco::AutoPtr<Poco::XML::Document> document;
};
/************************************************************/
/* External declarations (package visibility) */
/************************************************************/
/* Inline functions */
/************************************************************
End of PASCALVOCXMLSaver class header
************************************************************/
#endif