/* */ #ifndef _D_FILE_METALINK_PARSER_STATE_H_ #define _D_FILE_METALINK_PARSER_STATE_H_ #include "MetalinkParserState.h" namespace aria2 { class FileMetalinkParserState:public MetalinkParserState { private: static const std::string SIZE; // VERSION is not allowed here because it is defined in macro. static const std::string METALINK_VERSION; static const std::string LANGUAGE; static const std::string OS; static const std::string VERIFICATION; static const std::string RESOURCES; static const std::string MAXCONNECTIONS; public: void beginElement(MetalinkParserStateMachine* stm, const std::string& name, const std::map& attrs); void endElement(MetalinkParserStateMachine* stm, const std::string& name, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; } // namespace aria2 #endif // _D_FILE_METALINK_PARSER_STATE_H_