1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef anna_http_internal_Token_hpp
10 #define anna_http_internal_Token_hpp
14 #include <anna/core/DataBlock.hpp>
20 class Token : public DataBlock {
22 Token() : DataBlock(false) {;}
24 const std::string& getStringValue() const ;
25 int getIntegerValue() const ;
26 bool contains(const char byte) const ;
28 void setValue(const char* content, const int size) {
32 bool match(const char* str) const ;
33 int calculeOffset(const DataBlock& base) const noexcept(false);