54 void saveTo(const std::
string &path) throw(IOException, BDocException);
55 void addDocument(const
Document& document) throw(BDocException);
56 Document getDocument(
unsigned int id) const throw(BDocException);
57 void removeDocument(
unsigned int id) throw(BDocException);
58 unsigned int documentCount() const;
59 DocumentType documentType() const;
60 void addSignature(const std::vector<
unsigned char> &signature) throw(BDocException);
61 void addSignature(const std::vector<
unsigned char> &signature, Type profile = TM) throw(BDocException);
62 const
Signature* getSignature(
unsigned int id) const throw(BDocException);
63 void removeSignature(
unsigned int id) throw(BDocException);
64 unsigned int signatureCount() const;
65 void sign(
Signer* signer) throw(BDocException);
66 void sign(
Signer* signer, Type profile = TM) throw(BDocException);
67 std::vector<
unsigned char> getFileDigest(
unsigned int ) throw(BDocException) {
return std::vector<unsigned char>(); }
72 void setVersion(
const std::string&
version);
73 std::string getMimeType()
const;
75 std::
string createManifest() throw(IOException);
76 void readMimetype(const std::
string &path) throw(IOException,
BDocException);
77 void parseManifestAndLoadFiles(const std::
string &path) throw(IOException, BDocException);