DeltaQt
Version 0.2.0 End user documentation
A C++/Qt library for parsing DELTA (DEscription Language for TAxonomy) files
|
00001 /* Copyright 2012 Craig Robbins 00002 00003 This file is part of DeltaQt 00004 00005 DeltaQt is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation, either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 DeltaQt is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with DeltaQt. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef DELTAPARSERPHASE2_H 00020 #define DELTAPARSERPHASE2_H 00021 00022 #include "deltadataset.h" 00023 #include "delimitedbuffer.h" 00024 #include "deltaparselog.h" 00025 #include "deltavaluecouple.h" 00026 00027 class DeltaParserPhase2 00028 { 00029 public: 00030 DeltaParserPhase2(); 00031 DeltaParserPhase2(DeltaDataset* dataset, DeltaParseLog* log); 00032 00033 bool finalParseItemAttributes(void); 00034 protected: 00035 00036 bool parseItemAttributes(DeltaAttribute& dAttr); 00037 bool parseAttributeValues(DeltaAttribute& dAttr); 00038 bool parseAttributeValueSet(DeltaCharacterType::TypeId cTypeId, 00039 const DelimitedBuffer& elementSetStr, 00040 DeltaAttribute& attr, 00041 DeltaAttributeValueSet& dAttrValueSet); 00042 00043 private: 00044 DeltaDataset* m_dataset; 00045 DeltaParseLog* m_parseLogPointer; 00046 }; 00047 00048 #endif // DELTAPARSERPHASE2_H