SpatialFamilyIDGenerator.h

Go to the documentation of this file.
00001 
00011 #ifndef SPATIALFAMILYIDGENERATOR_H
00012 #define SPATIALFAMILYIDGENERATOR_H
00013 
00015 typedef int familyid_t;
00016 
00017 #include <boost/shared_ptr.hpp>
00018 using boost::shared_ptr;
00019 
00020 #include <vector>
00021 using std::vector;
00022 
00023 #include "SimNetwork.h"
00024 #include "Point3DSet.h"
00025 
00027 
00033 class SpatialFamilyIDGenerator {
00034 
00035     public:
00037         SpatialFamilyIDGenerator( ) {
00038             /* NOOP */
00039         };
00040 
00042         virtual ~SpatialFamilyIDGenerator() {
00043             /* NOOP */
00044         };
00045 
00047         // virtual void setFactories( vector<SimObjectFactory *> const& families )
00048         // {
00049         //  this->families = families;
00050         // };
00051 
00053         virtual shared_ptr< vector<familyid_t> > generateIDs( SimNetwork &net, vector<SimObjectFactory *> const& families, Point3DSet const& locs ) const
00054         /* The following is a dummy implementation */
00055         {
00056             shared_ptr< vector<familyid_t> > dummy( new vector<familyid_t>(0) );
00057             return dummy;
00058         };
00059 
00060         //private:
00061         //  vector<SimObjectFactory *> families;
00062 
00063 };
00064 
00065 #endif

Generated on Wed Jul 9 16:34:37 2008 for PCSIM by  doxygen 1.5.5