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 // forward.
00023 class entity_registry;
00024 class octopus_request_id;
00025 
00027 
00032 class TENTACLES_CLASS_STYLE login_tentacle
00033 : public tentacle_helper<security_infoton>
00034 {
00035 public:
00036   login_tentacle(entity_registry &security,
00037           int dormancy_period = 7 * MINUTE_ms);
00039 
00044   virtual ~login_tentacle();
00045 
00046   IMPLEMENT_CLASS_NAME("login_tentacle");
00047 
00048   virtual outcome reconstitute(const string_array &classifier,
00049           byte_array &packed_form, infoton * &reformed);
00051 
00055   virtual outcome consume(infoton &to_chow, const octopus_request_id &item_id,
00056           byte_array &transformed);
00058 
00062   virtual void expunge(const octopus_entity &to_remove);
00064 
00065 private:
00066   entity_registry &_security;  
00067   int _dormancy_period;  
00068 };
00069 
00070 #endif
00071 

Generated on Fri Nov 28 04:29:32 2008 for HOOPLE Libraries by  doxygen 1.5.1