Sha256: d573085e1c63454896106c354dd76a776485d03a3d4c53014c4b548a6f5e7b1e
Contents?: true
Size: 1.07 KB
Versions: 28
Compression:
Stored size: 1.07 KB
Contents
#ifndef _RHOGOOGLEMAPENGINE_H_ #define _RHOGOOGLEMAPENGINE_H_ #include "common/map/MapEngine.h" #include "common/ThreadQueue.h" #include "net/INetRequest.h" namespace rho { namespace common { namespace map { class GoogleGeoCoding : public IGeoCoding, public CThreadQueue { DEFINE_LOGCLASS; private: struct Command : public IQueueCommand { String address; std::auto_ptr<GeoCodingCallback> callback; Command(String const &a, GeoCodingCallback *cb) :address(a), callback(cb) {} bool equals(IQueueCommand const &) {return false;} String toString(); }; public: GoogleGeoCoding(); ~GoogleGeoCoding(); //void stop(); void resolve(String const &address, GeoCodingCallback *cb); private: bool fetchData(String const &url, void **data, size_t *datasize); void processCommand(IQueueCommand* cmd); net::CNetRequestWrapper getNet(){ return getNetRequest(&m_NetRequest); } private: NetRequest m_NetRequest; }; } // namespace map } // namespace common } // namespace rho #endif
Version data entries
28 entries across 28 versions & 1 rubygems