00001 #ifndef IDENTITY_INFOTON_CLASS 00002 #define IDENTITY_INFOTON_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : identity_infoton * 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 "entity_defs.h" 00019 #include "infoton.h" 00020 00022 00028 class OCTOPUS_CLASS_STYLE identity_infoton : public infoton 00029 { 00030 public: 00031 octopus_entity _new_name; 00032 00033 identity_infoton(); 00034 identity_infoton(const octopus_entity &name); 00035 identity_infoton(const identity_infoton &to_copy); 00036 00037 virtual ~identity_infoton(); 00038 00039 IMPLEMENT_CLASS_NAME("identity_infoton"); 00040 00041 identity_infoton &operator = (const identity_infoton &to_copy); 00042 00043 static const string_array &identity_classifier(); 00045 00046 virtual void pack(byte_array &packed_form) const; 00047 virtual bool unpack(byte_array &packed_form); 00048 00049 virtual clonable *clone() const; 00050 00051 virtual int packed_size() const; 00052 }; 00053 00054 #endif 00055
1.5.1