entity_registry.cpp

Go to the documentation of this file.
00001 #ifndef ENTITY_REGISTRY_IMPLEMENTATION_FILE
00002 #define ENTITY_REGISTRY_IMPLEMENTATION_FILE
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : 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 #include <basis/chaos.h>
00021 #include <basis/portable.h>
00022 #include <mechanisms/safe_roller.h>
00023 #include <octopus/entity_defs.h>
00024 
00025 entity_registry::entity_registry()
00026 : _sequencer(new safe_roller(1, MAXINT / 2)),
00027   _rando(new chaos)
00028 {
00029 }
00030 
00031 entity_registry::~entity_registry()
00032 {
00033   WHACK(_sequencer);
00034   WHACK(_rando);
00035 }
00036 
00038 
00039 istring blank_entity_registry::text_form()
00040 { return "blank_entity_registry--all are allowed, none are remembered."; }
00041 
00042 bool blank_entity_registry::locate_entity(const octopus_entity &formal(entity),
00043     time_stamp &last_active, byte_array &verification)
00044 {
00045   last_active = time_stamp();
00046   verification = byte_array();
00047   return true;
00048 }
00049 
00050 
00051 #endif //ENTITY_REGISTRY_IMPLEMENTATION_FILE
00052 

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