Sirikata
libspace/plugins/master-pinto/MasterPintoServerQuerier.hpp
Go to the documentation of this file.
00001 // Copyright (c) 2012 Sirikata Authors. All rights reserved.
00002 // Use of this source code is governed by a BSD-style license that can
00003 // be found in the LICENSE file.
00004 
00005 #ifndef _SIRIKATA_LIBSPACE_MASTER_PINTO_SERVER_QUERIER_HPP_
00006 #define _SIRIKATA_LIBSPACE_MASTER_PINTO_SERVER_QUERIER_HPP_
00007 
00008 #include "MasterPintoServerQuerierBase.hpp"
00009 
00010 namespace Sirikata {
00011 
00015 class MasterPintoServerQuerier : public MasterPintoServerQuerierBase {
00016 public:
00017     MasterPintoServerQuerier(SpaceContext* ctx, const String& params);
00018     virtual ~MasterPintoServerQuerier();
00019 
00020     // PintoServerQuerier Interface
00021     virtual void updateQuery(const String& update);
00022 
00023 private:
00024 
00025     // Overrides from base class
00026     virtual void onConnected();
00027 
00028     virtual void onPintoData(const String& data);
00029 
00030     // If connected and any properties are marked as dirty, tries to
00031     // send an update to the server
00032     void updatePintoQuery();
00033 
00034 
00035     SolidAngle mAggregateQuery;
00036     uint32 mAggregateQueryMaxResults;
00037     bool mAggregateQueryDirty;
00038 }; // MasterPintoServerQuerier
00039 
00040 } // namespace Sirikata
00041 
00042 #endif //_SIRIKATA_LIBSPACE_MASTER_PINTO_SERVER_QUERIER_HPP_