00001 #ifndef SIMPLE_CLIENT_REGISTRY_CLASS 00002 #define SIMPLE_CLIENT_REGISTRY_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : simple_entity_registry * 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_registry.h" 00019 00020 // forward. 00021 class octopus_entity; 00022 class recognized_entity; 00023 class recognized_entity_list; 00024 00026 00037 class TENTACLES_CLASS_STYLE simple_entity_registry : public entity_registry 00038 { 00039 public: 00040 simple_entity_registry(); 00041 virtual ~simple_entity_registry(); 00042 00043 virtual bool authorized(const octopus_entity &entity); 00045 00046 virtual bool locate_entity(const octopus_entity &entity, 00047 time_stamp &last_active, byte_array &verification); 00049 00051 virtual bool add_entity(const octopus_entity &entity, 00052 const byte_array &verification); 00054 00058 virtual bool refresh_entity(const octopus_entity &entity); 00060 00063 virtual bool zap_entity(const octopus_entity &entity); 00065 00067 virtual istring text_form(); 00069 00070 private: 00071 mutex *_secure_lock; 00072 recognized_entity_list *_entities; 00073 }; 00074 00075 #endif 00076
1.5.1