void PlainDictionary::populateHeader(Header &header, string rootNode) { header.insert(rootNode, HDTVocabulary::DICTIONARY_TYPE, HDTVocabulary::DICTIONARY_TYPE_PLAIN); header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMSUBJECTS, getNsubjects()); header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMPREDICATES, getNpredicates()); header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMOBJECTS, getNobjects()); header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMSHARED, getNshared()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAXSUBJECTID, getMaxSubjectID()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAXPREDICATEID, getMaxPredicateID()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAXOBJECTTID, getMaxObjectID()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAPPING, getMapping()); header.insert(rootNode, HDTVocabulary::DICTIONARY_SIZE_STRINGS, size()); }
void FourSectionDictionary::populateHeader(Header & header, string rootNode) { header.insert(rootNode, HDTVocabulary::DICTIONARY_TYPE, getType()); #if 0 header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMSUBJECTS, getNsubjects()); header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMPREDICATES, getNpredicates()); header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMOBJECTS, getNobjects()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAXSUBJECTID, getMaxSubjectID()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAXPREDICATEID, getMaxPredicateID()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAXOBJECTTID, getMaxObjectID()); #endif header.insert(rootNode, HDTVocabulary::DICTIONARY_NUMSHARED, getNshared()); header.insert(rootNode, HDTVocabulary::DICTIONARY_MAPPING, this->mapping); header.insert(rootNode, HDTVocabulary::DICTIONARY_SIZE_STRINGS, size()); header.insert(rootNode, HDTVocabulary::DICTIONARY_BLOCK_SIZE, this->blocksize); }