ParametersHandler.hh

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 ** 
00004 ** Copyright (C) 2006 The TBT Team.
00005 ** 
00006 ** This program is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU General Public License
00008 ** as published by the Free Software Foundation; either version 2
00009 ** of the License, or (at your option) any later version.
00010 ** 
00011 ** The complete GNU General Public Licence Notice can be found as the
00012 ** `NOTICE' file in the root directory.
00013 ** 
00014 ** The TBT Team consists of people listed in the `AUTHORS' file.
00015 */
00016 #ifndef PARAMETERSHANDLER_HH_
00017 #define PARAMETERSHANDLER_HH_
00018 
00019 #include    <xercesc/sax/HandlerBase.hpp>
00020 
00021 XERCES_CPP_NAMESPACE_USE
00022 
00023 class ParametersHandler : public HandlerBase
00024 {
00025 public:
00026     static std::vector<std::string> vSkillsGeneral_;
00027     static std::vector<std::string> vSkillsAgility_;
00028     static std::vector<std::string> vSkillsPassing_;
00029     static std::vector<std::string> vSkillsStrength_;
00030     static std::vector<std::string> vSkillsMutation_;
00031     static std::vector<std::string> vSkillsExtraordinary_;
00032 
00033     static std::string BBversion_;   
00034 
00035     // -----------------------------------------------------------------------
00036     //  Constructors
00037     // -----------------------------------------------------------------------
00038     ParametersHandler();
00039     virtual ~ParametersHandler();
00040 
00041     // -----------------------------------------------------------------------
00042     //  Handlers for the SAX DocumentHandler interface
00043     // -----------------------------------------------------------------------
00044     void startElement(const XMLCh* const name, AttributeList& attributes);
00045     void characters(const XMLCh* const chars, const unsigned int length);
00046     void endElement(const XMLCh* const name);
00047   
00048 
00049 private:
00050    static std::vector<std::string> *vCurrent_;
00051    
00052    std::string    currentNode_;
00053 };
00054 
00055 #endif /*PARAMETERSHANDLER_HH_*/

Generated on Sat Jun 23 16:07:23 2007 for Stechec/TBT by  doxygen 1.4.7