00001 #ifndef IDENTITY_TENTACLE_CLASS 00002 #define IDENTITY_TENTACLE_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : identity_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 "identity_infoton.h" 00019 #include "tentacle_helper.h" 00020 00022 00023 class OCTOPUS_CLASS_STYLE identity_tentacle 00024 : public tentacle_helper<identity_infoton> 00025 { 00026 public: 00027 identity_tentacle(octopus &parent); 00029 00030 virtual ~identity_tentacle(); 00031 00032 IMPLEMENT_CLASS_NAME("identity_tentacle"); 00033 00034 virtual outcome reconstitute(const string_array &classifier, 00035 byte_array &packed_form, infoton * &reformed); 00037 00041 virtual outcome consume(infoton &to_chow, const octopus_request_id &item_id, 00042 byte_array &transformed); 00044 00048 private: 00049 octopus &_parent; 00050 }; 00051 00052 #endif 00053
1.5.1