versadac  1
versadac - Scalable Recorder Firmware
am_historypvconf.h
1 /*****************************************************************************
2 FILE : am_historypvconf.h
3 VERSION : $Id: am_historypvconf.h 4938 2006-10-10 14:20:18Z martinto $
4 AUTHOR : Sandra Herring
5 SYSTEM : GNU C++ for Power PC
6 DESCRIPTION : Header file for History PV Configuration classes.
7 *****************************************************************************/
8 
9 #if !defined(__AM_HISTORYPVCONF_H)
10 #define __AM_HISTORYPVCONF_H
11 
12 #if !defined(__AM_PVCONF_H)
13 #include "am_pvconf.h"
14 #endif
15 
16 #if !defined(__AM_HISTORYRECORD_H)
17 #include "am_historyrecord.h"
18 #endif
19 
20 #if !defined(__LINKLIST_H)
21 #include "linklist.h"
22 #endif
23 
25 {
26  public :
27 
28  // instrument source_channel_enumeration type
29  enum HistoryPVType
30  {
31  REAL_CHANNEL,
32  DERIVED_CHANNEL,
33  TOTALISER,
34  COUNTER,
35  PV_TYPE_LIM
36  };
37 
38  enum DataType
39  {
40  BOOL_DATA,
41  FLOAT_DATA,
42  DOUBLE_DATA
43  };
44 
45 /*------------------------------------------------------------------------------
46 FUNCTION : AM_HistoryPVConfig constructor
47 DESCRIPTION :
48 ARGUMENTS : pvType : type of PV
49  dataType : type of value returned for this PV
50  trendable : whether this PV can be included in trace.
51 RETURN : N/A
52 NOTES :
53 ------------------------------------------------------------------------------*/
54  AM_HistoryPVConfig( PVType pvType,
55  uint8 dataType );
56 
57 /*------------------------------------------------------------------------------
58 FUNCTION : AM_HistoryPVConfig destructor
59 ------------------------------------------------------------------------------*/
60  virtual ~AM_HistoryPVConfig();
61 
62  protected :
63 
64 /*------------------------------------------------------------------------------
65 FUNCTION : AM_HistoryPVConfig::readFormatDescriptorAndUnits
66 DESCRIPTION : service to read in PV value format, descriptor, tag and units
67  strings from current position in archive file.
68 ARGUMENTS : stream : pointer to open archive file stream.
69 RETURN : TRUE if data read in successfully, otherwise FALSE.
70 NOTES :
71 ------------------------------------------------------------------------------*/
72  sint32 readFormatDescriptorAndUnits( AM_HistoryStream & stream );
73 };
74 
75 #endif // end of __AM_HISTORYPVCONF_H conditional include
76 
Definition: am_historystream.h:23
Definition: am_historypvconf.h:24
Definition: am_historyrecord.h:29
Definition: am_pvconf.h:138