pvDatabaseCPP  4.7.1-dev
pvdbcrTraceRecord.h
Go to the documentation of this file.
1 
10 #ifndef PVDBCRTRACEARRAY_H
11 #define PVDBCRTRACEARRAY_H
12 
13 #include <pv/pvDatabase.h>
14 #include <pv/pvSupport.h>
15 #include <pv/pvStructureCopy.h>
16 
17 #include <shareLib.h>
18 
19 namespace epics { namespace pvDatabase {
20 
22 typedef std::tr1::shared_ptr<PvdbcrTraceRecord> PvdbcrTraceRecordPtr;
23 
28 class epicsShareClass PvdbcrTraceRecord :
29  public PVRecord
30 {
31 private:
33  std::string const & recordName,epics::pvData::PVStructurePtr const & pvStructure,
34  int asLevel,std::string const & asGroup);
35  epics::pvData::PVStringPtr pvRecordName;
36  epics::pvData::PVIntPtr pvLevel;
37  epics::pvData::PVStringPtr pvResult;
38 public:
39  POINTER_DEFINITIONS(PvdbcrTraceRecord);
43  virtual ~PvdbcrTraceRecord() {}
52  static PvdbcrTraceRecordPtr create(
53  std::string const & recordName,
54  int asLevel=0,std::string const & asGroup = std::string("DEFAULT"));
59  virtual bool init();
63  virtual void process();
64 };
65 
66 }}
67 
68 #endif /* PVDBCRTRACEARRAY_H */
Base interface for a PVRecord.
Definition: pvDatabase.h:56
std::tr1::shared_ptr< PvdbcrTraceRecord > PvdbcrTraceRecordPtr
PvdbcrTraceRecord A record sets trace level for a record in the master database.