/usr/include/tercpp/sgmlDocument.h is in libtercpp-dev 0.6.2+svn46-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | #ifndef __SGML_DOCUMENT_H__
#define __SGML_DOCUMENT_H__
#include "documentStructure.h"
// #include "xmlStructure.h"
#include <iostream>
#include <string>
namespace TERCpp
{
class SGMLDocument
{
public:
SGMLDocument();
// SGMLDocument(string FileName);
// SGMLDocument(const std::string &bread, const std::string &cheese, const std::string &meat, const bool pickle):
// m_bread(bread), m_cheese(cheese), m_meat(meat), m_pickle(pickle){};
// ~SGMLDocument(){};
// void output()
// {
// std::cout << "Bread = " << m_bread << ", Cheese = " << m_cheese <<
// ", Meat = " << m_meat << ", Has Pickle = " << m_pickle << std::endl;
//
// }
void setDocType ( string s );
void setSetId ( string s );
void setSrcLang ( string s );
void setTgtLang ( string s );
string getDocType();
string getSetId();
string getSrcLang();
string getTgtLang();
// xmlStructure getStructure();
void addDocument ( documentStructure doc );
documentStructure* getLastDocument();
documentStructure* getFirstDocument();
int getSize();
documentStructure* getDocument(string docId);
vector <documentStructure> getDocumentCollection(string docId);
documentStructure* getDocument(int docId);
void setAverageLength();
void setParams(param p);
string toString();
private:
string docType;
string setId;
string srcLang;
string tgtLang;
param sgmlDocumentParams;
// xmlStructure xmlStruct;
vector<documentStructure> documents;
// std::string m_bread, m_cheese, m_meat;
// bool m_pickle;
//
// // declare the boost::serialization::access class as a friend of SGMLDocument
// friend class boost::serialization::access;
// // Create a serialize function for serialization::access to use, I guess you could regard this as a kind of callback function!
// template<class archive>
// void serialize(archive& ar, const unsigned int version)
// {
// // Note: As explained in the original tut. the & operator is overridden in boost to use
// // << or >> depending on the direction of the data (read/write)
// using boost::serialization::make_nvp;
// ar & make_nvp("Bread", m_bread);
// ar & make_nvp("Cheese", m_cheese);
// ar & make_nvp("Meats", m_meat);
// ar & make_nvp("HasPickle", m_pickle);
// // Also note: strings in the first parameter of make_nvp cannot contain spaces!
// }
};
}
#endif //SANDWICH_DEFINED
|