login_tentacle.h

Go to the documentation of this file.
00001 #ifndef LOGIN_TENTACLE_CLASS
00002 #define LOGIN_TENTACLE_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : login_tentacle                                                    *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2002-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "security_infoton.h"
00019 
00020 #include <octopus/tentacle_helper.h>
00021 
00022 namespace octopi {
00023 
00024 // forward.
00025 class entity_registry;
00026 class octopus_request_id;
00027 
00029 
00034 class login_tentacle
00035 : public tentacle_helper<security_infoton>
00036 {
00037 public:
00038   login_tentacle(entity_registry &security,
00039           int dormancy_period = 7 * basis::MINUTE_ms);
00041 
00046   virtual ~login_tentacle();
00047 
00048   DEFINE_CLASS_NAME("login_tentacle");
00049 
00050   virtual basis::outcome reconstitute(const structures::string_array &classifier,
00051           basis::byte_array &packed_form, infoton * &reformed);
00053 
00057   virtual basis::outcome consume(infoton &to_chow, const octopus_request_id &item_id,
00058           basis::byte_array &transformed);
00060 
00064   virtual void expunge(const octopus_entity &to_remove);
00066 
00067 private:
00068   entity_registry &_security;  
00069   int _dormancy_period;  
00070 };
00071 
00072 } //namespace.
00073 
00074 #endif
00075 
Generated on Sat Jan 28 04:22:51 2012 for hoople2 project by  doxygen 1.6.3