feisty meow concerns codebase  2.140
tentacle_helper.h File Reference

Automates some common tasks for tentacle implementations. This template provides some default implementations for the methods that derived tentacles must implement. This works best when the infotons being exchanged are derived from a common base; the base class would be used as the instantiation type here. For tentacles used in network communication, the client side could use tentacle_helper<infoton_type> without adding any functionality. The server side must override the consume() and expunge() methods in order to implement processing for the infotons sent by its clients. More...

#include "infoton.h"
#include "tentacle.h"
#include <basis/byte_array.h>
#include <basis/outcome.h>
#include <structures/string_array.h>
Include dependency graph for tentacle_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  octopi::tentacle_helper< contents >
 provides prefab implementations for parts of the tentacle object. More...
 

Namespaces

 octopi
 

Functions

template<class contents >
basis::outcome octopi::reconstituter (const structures::string_array &classifier, basis::byte_array &packed_form, infoton *&reformed, contents *formal(junk))
 < reconstituter should work for most infotons to restore flattened infotons. More...
 

Detailed Description

Automates some common tasks for tentacle implementations. This template provides some default implementations for the methods that derived tentacles must implement. This works best when the infotons being exchanged are derived from a common base; the base class would be used as the instantiation type here. For tentacles used in network communication, the client side could use tentacle_helper<infoton_type> without adding any functionality. The server side must override the consume() and expunge() methods in order to implement processing for the infotons sent by its clients.

Definition in file tentacle_helper.h.