34 using namespace basis;
43 #define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), astring(s))
53 virtual int execute();
56 int test_octopus_identity::execute()
69 astring("the packed size was different than expected."));
71 outcome ret = logos.evaluate(ide, junk_id);
74 astring("the evaluation failed with an error ")
79 infoton *response = logos.acquire_result(junk_id._entity, response_id);
82 astring("the acquire_result failed to produce a result."));
91 LOG(
astring("new
id is: ") + my_ide.text_form());
95 astring("the new entity
id is blank."));
98 LOG("
octopus:: identity works for those functions tested.");
The application_shell is a base object for console programs.
Provides a dynamically resizable ASCII character string.
A very common template for a dynamic array of bytes.
Outcomes describe the state of completion for an operation.
Encapsulates just the action of identifying an octopus user.
An infoton is an individual request parcel with accompanying information.
Provides a way of identifying users of an octopus object.
Identifies requests made on an octopus by users.
Octopus is a design pattern for generalized request processing systems.
Manages a service within an octopus by processing certain infotons.
#define deadly_error(c, f, i)
#define DEFINE_CLASS_NAME(objname)
Defines the name of a class by providing a couple standard methods.
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
Provides macros that implement the 'main' program of an application.
#define HOOPLE_MAIN(obj_name, obj_args)
options that should work for most unix and linux apps.
Implements an application lock to ensure only one is running at once.
The guards collection helps in testing preconditions and reporting errors.
const int MEGABYTE
Number of bytes in a megabyte.
A logger that sends to the console screen using the standard output device.
An extension to floating point primitives providing approximate equality.
void pack(basis::byte_array &packed_form, const set< contents > &to_pack)
provides a way to pack any set that stores packable objects.
int packed_size(const byte_array &packed_form)
Reports the size required to pack a byte array into a byte array.
Useful support functions for unit testing, especially within hoople.