1 #ifndef UNHANDLED_REQUEST_CLASS
2 #define UNHANDLED_REQUEST_CLASS
27 class octopus_request_id;
62 virtual clonable *
clone()
const;
Defines the base class for all string processing objects in hoople.
A very common template for a dynamic array of bytes.
Outcomes describe the state of completion for an operation.
An infoton is an individual request parcel with accompanying information.
virtual basis::astring text_form() const
local version just makes text_form() more functional.
Identifies requests made on an octopus by users.
provides prefab implementations for parts of the tentacle object.
unhandled_request_tentacle(bool backgrounded=false)
Informs the caller that a request type was unknown to the server octopus.
unhandled_request(const octopus_request_id &id=octopus_request_id(), const structures::string_array &original_classifier=structures::string_array(), const basis::outcome &reason=basis::common::NO_HANDLER)
virtual int packed_size() const
reports how large the infoton will be when packed.
octopus_request_id _original_id
the failed request's identifier.
virtual clonable * clone() const
must be provided to allow creation of a copy of this object.
static structures::string_array the_classifier()
the classifier for unknown infotons makes unhandled requests unique.
DEFINE_CLASS_NAME("unhandled_request")
virtual void pack(basis::byte_array &packed_form) const
stuffs the data in the infoton into the "packed_form".
virtual bool unpack(basis::byte_array &packed_form)
restores an infoton from a packed form.
basis::outcome _reason
the reason why this request was provided.
structures::string_array _original_classifier
the original name of the request.
An array of strings with some additional helpful methods.
Automates some common tasks for tentacle implementations. This template provides some default impleme...