This is Unofficial EPICS BASE Doxygen Site
syncChannelFind.h
Go to the documentation of this file.
1 /* syncChannelFind.h */
15 #ifndef SYNCCHANNELFIND_H
16 #define SYNCCHANNELFIND_H
17 
18 #include <string>
19 #include <cstring>
20 #include <stdexcept>
21 #include <memory>
22 
23 #ifdef epicsExportSharedSymbols
24 # define syncChannelFindEpicsExportSharedSymbols
25 # undef epicsExportSharedSymbols
26 #endif
27 #include <pv/pvData.h>
28 #ifdef syncChannelFindEpicsExportSharedSymbols
29 # define epicsExportSharedSymbols
30 # undef syncChannelFindEpicsExportSharedSymbols
31 #endif
32 
33 #include <shareLib.h>
34 #include <pv/pvAccess.h>
35 
36 
37 namespace epics {
38 namespace pvAccess {
39 
41 {
42 public:
43  typedef std::tr1::shared_ptr<SyncChannelFind> shared_pointer;
44 
45  SyncChannelFind(ChannelProvider::shared_pointer &provider) : m_provider(provider)
46  {
47  }
48 
49  virtual ~SyncChannelFind() {}
50 
51  virtual void destroy() {}
52 
53  virtual ChannelProvider::shared_pointer getChannelProvider()
54  {
55  return m_provider.lock();
56  };
57 
58  virtual void cancel() {}
59 
60 private:
61  ChannelProvider::weak_pointer m_provider;
62 };
63 
64 
65 
66 
67 }
68 }
69 #endif /* SYNCCHANNELFIND_H */
SyncChannelFind(ChannelProvider::shared_pointer &provider)
TODO only here because of the Lockable.
Definition: ntaggregate.cpp:16
Mark external symbols and entry points for shared libraries.
std::tr1::shared_ptr< SyncChannelFind > shared_pointer
virtual ChannelProvider::shared_pointer getChannelProvider()