class VoltWriter : public VoltBase Handles the output for calculations on power line monitor channels
VoltWriter handles the results of several VoltWatchers - its major functions are to save the results from each channel to a file and to periodically post all of the results to a webpage, summary.html.Source code: VoltWriter.hh and VoltWriter.cc
VoltWriter(const char* filename, int average=1, int ival = 1, bool harmonics = true, int trend = notrend, MonServer* monserver = 0)
avg - Number of VoltWatcher buffers over which to average results
virtual ~VoltWriter()
void writeIndex()
static char* makeName(char* s, const char* name, const char* ext)
name - Original channel name
ext - Channel name extension
void addSlot(VoltWatcher& VWatch)
void setTimeArray(const int id, const unsigned long GPSsecs)
GPSsecs - New time (in GPS seconds)
void setData(const int id, const int column, const float data)
column - Column number to add to
data - Value to add
void setSlotStatus(const int id, bool status)
status - GOOD or BAD
void makeHeaders()
void VoltWriter::printHeader()
void print2File(const int id)
void print2Screen(const int id) const
void print2Web()
void reset()
void makeFilenames(const char* filename)
bool slotStatus[maxChannels]
char channelNames[maxChannels][80]
char fileNames[maxChannels][80]
char webname[200]
bool useharmonics
int usetrend
Trend trend
std::ofstream opd
std::fstream web
MonServer* mserv
float hist[maxChannels][4][maxHistory]
int histlen[maxChannels]
Time histStart[maxChannels]
const float interval
void addHistPoint(int id)
TSeries histTS[maxChannels][4]
const int avgFactor
int timer[maxChannels]
alphabetic index hierarchy of classes
generated by doc++