1 #ifndef ENTITY_DEFINITIONS_GROUP
2 #define ENTITY_DEFINITIONS_GROUP
Provides a dynamically resizable ASCII character string.
Defines the base class for all string processing objects in hoople.
virtual base_string & assign(const base_string &s)=0
Sets the contents of this string to "s".
A very common template for a dynamic array of bytes.
A base class for objects that can pack into an array of bytes.
A base class for objects that can provide a synopsis of their current state.
implements a list of waiting infotons.
infoton_id_pair(infoton *data, const octopus_request_id &id)
a list of pending requests and who made them.
An infoton is an individual request parcel with accompanying information.
Provides a way of identifying users of an octopus object.
int process_id() const
returns the process number in the id.
int packed_size() const
reports how large the packed entity will be.
virtual bool unpack(basis::byte_array &packed_form)
Restores the packable from the "packed_form".
basis::astring text_form() const
returns a readable form of the identifier.
octopus_entity & operator=(const octopus_entity &to_copy)
virtual void text_form(basis::base_string &to_fill) const
Provides a text view of all the important info owned by this object.
const basis::astring & hostname() const
returns the hostname portion of the id.
bool operator==(const octopus_entity &that) const
octopus_entity()
blank constructor.
int add_in() const
returns the random add-in from the id.
DEFINE_CLASS_NAME("octopus_entity")
basis::astring to_text() const
conversion to text format for display.
int sequencer() const
returns the sequencing number from the id.
virtual void pack(basis::byte_array &packed_form) const
Creates a packed form of the packable object in "packed_form".
static void breakout(const basis::astring &mangled_form, basis::astring &hostname, int &process_id, int &sequencer, int &add_in)
takes a "mangled_form" of an entity id and retrieves the components.
static octopus_entity from_text(const basis::astring &to_convert)
conversion from text format, parsing parameters out.
bool blank() const
true if the entity is blank, as constructed by default constructor.
basis::astring mangled_form() const
returns the combined string form of the identifier.
a collection of unique request ids.
octopus_request_id_set(const structures::set< octopus_request_id > &orig)
Identifies requests made on an octopus by users.
int packed_size() const
reports how large the packed id will be.
basis::astring to_text() const
static octopus_request_id from_text(const basis::astring &to_convert)
basis::astring mangled_form() const
similar to entity id.
virtual void pack(basis::byte_array &packed_form) const
Creates a packed form of the packable object in "packed_form".
basis::astring text_form() const
human readable form of the request.
octopus_request_id(const octopus_entity &entity, int request_num)
int _request_num
the item number from the entity.
bool operator==(const octopus_request_id &that) const
octopus_entity _entity
the entity.
bool blank() const
returns true if this is a blank id (as constructed by default ctor).
static octopus_request_id randomized_id()
provides a pre-randomized request id.
virtual bool unpack(basis::byte_array &packed_form)
Restores the packable from the "packed_form".
Emulates a mathematical set, providing several standard set operations.
set(int num=0, const octopus_request_id *init=NULL_POINTER, basis::un_short flags=basis::array< octopus_request_id >::EXPONE)
Constructs a set with "num" elements, copying them from "init".
#define NULL_POINTER
The value representing a pointer to nothing.
A dynamic container class that holds any kind of object via pointers.