/* */ #ifndef _D_METALINK_PARSER_STATE_V3_IMPL_H_ #define _D_METALINK_PARSER_STATE_V3_IMPL_H_ #include "MetalinkParserState.h" #include "MetalinkParserStateImpl.h" namespace aria2 { extern const std::string METALINK3_NAMESPACE_URI; class MetalinkMetalinkParserState:public MetalinkParserState { public: virtual void beginElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::vector& attrs); }; class FilesMetalinkParserState:public MetalinkParserState { public: virtual void beginElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::vector& attrs); virtual bool needsCharactersBuffering() const { return true; } }; class FileMetalinkParserState:public MetalinkParserState { public: virtual void beginElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::vector& attrs); virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class SizeMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class VersionMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class LanguageMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class OSMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class VerificationMetalinkParserState:public MetalinkParserState { public: virtual void beginElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::vector& attrs); virtual bool needsCharactersBuffering() const { return true; } }; class HashMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class PiecesMetalinkParserState:public MetalinkParserState { public: virtual void beginElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::vector& attrs); virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class PieceHashMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class SignatureMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; class ResourcesMetalinkParserState:public MetalinkParserState { public: virtual void beginElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::vector& attrs); virtual bool needsCharactersBuffering() const { return true; } }; class URLMetalinkParserState:public SkipTagMetalinkParserState { public: virtual void endElement(MetalinkParserStateMachine* stm, const std::string& localname, const std::string& prefix, const std::string& nsUri, const std::string& characters); virtual bool needsCharactersBuffering() const { return true; } }; } // namespace aria2 #endif // _D_METALINK_PARSER_STATE_V3_IMPL_H_