octopi::identity_tentacle Class Reference

Supports an early step in using octopus services: getting an identity. More...

#include <identity_tentacle.h>

Inheritance diagram for octopi::identity_tentacle:
Inheritance graph
[legend]
Collaboration diagram for octopi::identity_tentacle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 identity_tentacle (octopus &parent)
 the "parent" will provide the real identity services.
virtual ~identity_tentacle ()
 DEFINE_CLASS_NAME ("identity_tentacle")
virtual basis::outcome reconstitute (const structures::string_array &classifier, basis::byte_array &packed_form, infoton *&reformed)
 reinflates an infoton given that we know the type in "classifier".
virtual basis::outcome consume (infoton &to_chow, const octopus_request_id &item_id, basis::byte_array &transformed)
 chews on the "to_chow" infoton to perform the requested action.

Detailed Description

Supports an early step in using octopus services: getting an identity.

Definition at line 29 of file identity_tentacle.h.


Constructor & Destructor Documentation

octopi::identity_tentacle::identity_tentacle ( octopus parent  ) 

the "parent" will provide the real identity services.

Definition at line 36 of file identity_tentacle.cpp.

octopi::identity_tentacle::~identity_tentacle (  )  [virtual]

Definition at line 42 of file identity_tentacle.cpp.


Member Function Documentation

outcome octopi::identity_tentacle::consume ( infoton to_chow,
const octopus_request_id item_id,
basis::byte_array transformed 
) [virtual]

chews on the "to_chow" infoton to perform the requested action.

if it's an identity_infoton, then a new identity is provided. otherwise, the identity is given rudimentary checks for validity and the infoton is passed along.

Implements octopi::tentacle.

Definition at line 54 of file identity_tentacle.cpp.

References octopi::identity_infoton::_new_name, octopi::identity_infoton::clone(), octopi::tentacle::DISALLOWED, FUNCDEF, octopi::octopus::issue_identity(), LOG, octopi::octopus_entity::mangled_form(), octopi::octopus_request_id::mangled_form(), octopi::tentacle::NO_SPACE, octopi::tentacle::OKAY, octopi::tentacle::PARTIAL, basis::array< contents >::reset(), and octopi::tentacle::store_product().

octopi::identity_tentacle::DEFINE_CLASS_NAME ( "identity_tentacle"   ) 
outcome octopi::identity_tentacle::reconstitute ( const structures::string_array classifier,
basis::byte_array packed_form,
infoton *&  reformed 
) [virtual]

reinflates an infoton given that we know the type in "classifier".

recreates a "reformed" infoton from the "classifier" and packed infoton data in "packed_form". this will only succeed if the classifier's first name is understood here.

Reimplemented from octopi::tentacle_helper< identity_infoton >.

Definition at line 44 of file identity_tentacle.cpp.

References octopi::identity_infoton::identity_classifier(), NIL, octopi::tentacle::NO_HANDLER, and octopi::reconstituter().


The documentation for this class was generated from the following files:
Generated on Sat Jan 28 04:25:45 2012 for hoople2 project by  doxygen 1.6.3