41int test_angle::execute()
61 int siz = q.packed_size();
67 "unpacking should return original value");
71 return final_report();
The application_shell is a base object for console programs.
virtual int execute()=0
< retrieves the command line from the /proc hierarchy on linux.
application_shell()
constructs an application_shell to serve as the root of the program.
int length() const
Returns the current reported length of the allocated C array.
A very common template for a dynamic array of bytes.
Outcomes describe the state of completion for an operation.
contents get(angular_units unit) const
retrieves the current angular measure.
static angle arcsine(contents opposite, contents hypotenuse, basis::outcome &retval)
returns the asin of the angle.
static angle arctangent(contents opposite, contents adjacent, basis::outcome &retval)
returns the atan of the angle.
virtual bool unpack(basis::byte_array &packed_form)
unpacks the angle from the "packed_form".
static angle arccosine(contents adjacent, contents hypotenuse, basis::outcome &retval)
returns the acos of the angle.
#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.
Contains all of our objects for geometry and avoids name clashes.
A logger that sends to the console screen using the standard output device.
An extension to floating point primitives providing approximate equality.
A dynamic container class that holds any kind of object via pointers.
Useful support functions for unit testing, especially within hoople.
#define ASSERT_EQUAL(a, b, test_name)
#define ASSERT_FALSE(a, test_name)