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 00021 namespace octopi { 00022 00024 00030 class identity_infoton : public infoton 00031 { 00032 public: 00033 octopus_entity _new_name; 00034 00035 identity_infoton(); 00036 identity_infoton(const octopus_entity &name); 00037 identity_infoton(const identity_infoton &to_copy); 00038 00039 virtual ~identity_infoton(); 00040 00041 DEFINE_CLASS_NAME("identity_infoton"); 00042 00043 identity_infoton &operator = (const identity_infoton &to_copy); 00044 00045 static const structures::string_array &identity_classifier(); 00047 00048 virtual void text_form(basis::base_string &fill) const; 00049 00050 virtual int packed_size() const; 00051 virtual void pack(basis::byte_array &packed_form) const; 00052 virtual bool unpack(basis::byte_array &packed_form); 00053 00054 virtual clonable *clone() const; 00055 }; 00056 00057 } //namespace. 00058 00059 #endif 00060
1.6.3