xml_team.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef XML_TEAM_HH_
00018 # define XML_TEAM_HH_
00019
00020 # include <xercesc/sax/EntityResolver.hpp>
00021 # include "xml/xml.hh"
00022
00023 BEGIN_NS(xml);
00024
00031 class XMLTeam : public XML
00032 {
00033 public:
00034 XMLTeam(const std::string& schema_path);
00035
00036 void switchToTeamGlobals();
00037 bool switchToPlayer(int index);
00038
00039 protected:
00040 virtual const char* getExpectedRoot() const;
00041 virtual void initXMLInternal();
00042
00043 std::string schema_path_;
00044 };
00045
00046
00047 class XMLTeamEntityResolver : public xercesc::EntityResolver
00048 {
00049 public:
00050 XMLTeamEntityResolver(const std::string& schema_path);
00051 xercesc::InputSource* resolveEntity(const XMLCh* const, const XMLCh* const);
00052
00053 private:
00054 std::string schema_path_;
00055 };
00056
00057
00058 END_NS(xml);
00059
00060 #endif