Changeset 20061 for juggler/trunk/modules/gadgeteer/gadget/ProxyFactory.h
- Timestamp:
- 05/01/07 14:55:06 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/gadgeteer/gadget/ProxyFactory.h
r19729 r20061 68 68 * @return NULL if the proxy failed creation or configuration. 69 69 */ 70 virtual Proxy *createProxy(jccl::ConfigElementPtr element) const = 0;70 virtual ProxyPtr createProxy(jccl::ConfigElementPtr element) const = 0; 71 71 72 72 /** Gets the string definition of the type of element we can create. */ … … 94 94 * @return NULL if proxy failed creation or configuration. 95 95 */ 96 Proxy* createProxy(jccl::ConfigElementPtr element) const 97 { 98 PROXY* new_proxy = new PROXY; // Create new proxy 96 ProxyPtr createProxy(jccl::ConfigElementPtr element) const 97 { 98 // Create new proxy 99 boost::shared_ptr<PROXY> new_proxy = boost::shared_ptr<PROXY>(new PROXY); 99 100 bool success = new_proxy->config(element); // Attempt to configure it 100 101 // config calls inputmgr registrator … … 106 107 else // Failed 107 108 { 108 //XXX// delete new_proxy; 109 return NULL; 109 return ProxyPtr(); 110 110 } 111 111 } … … 176 176 * Otherwise, a pointer to the loaded proxy is returned. 177 177 */ 178 Proxy *loadProxy(jccl::ConfigElementPtr element);178 ProxyPtr loadProxy(jccl::ConfigElementPtr element); 179 179 180 180 private:
