CARMA C++
dbFileManagers.h
Go to the documentation of this file.
1 
9 #ifndef CARMA_DBMS_DBFILEMANAGERS_H
10 #define CARMA_DBMS_DBFILEMANAGERS_H
11 
13 #include "carma/util/types.h"
14 
15 #include <iosfwd>
16 #include <memory>
17 
18 namespace carma {
19 
20 namespace monitor {
21  class AverageAccumulator;
22 }
23 
24 namespace dbms {
25 
26 class DBConfigurator;
27 
32 public:
33 
35  const bool dotransfer,
36  const bool dosdp,
37  const carma::dbms::DBConfigurator & dbConf );
38 
39  ~DbFileManager( );
40 
41  void OpenNewFiles( const std::string & endName,
42  carma::util::frameType frameCount );
43 
44  void writeLongAveragesToFile(
45  carma::monitor::AverageAccumulator & accumulator,
46  const long frameCount );
47 
48  void DoneWithFiles( const bool dodbload );
49 
50 private:
51 
52  void addMonitorDataArea( carma::dbms::MonitorDataAreaType monitorDataArea,
53  const carma::dbms::DBConfigurator & dbConf );
54 
55  struct Impl;
56  ::std::auto_ptr< Impl > impl_;
57 
58 }; // class DbFileManager
59 
64 public:
65 
67  const carma::dbms::DBConfigurator & dbConf );
68 
70 
71  void OpenNewFiles( const ::std::string & endName,
72  carma::util::frameType frameCount );
73 
74  void writeInstAveragesToFile(
75  carma::monitor::AverageAccumulator & accumulator,
76  const long frameCount );
77 
78  void DoneWithFiles( const bool dodbload );
79 
80 private:
81 
82  struct Impl;
83 
84  ::std::auto_ptr< Impl > impl_;
85 
86 }; // class DbFFIOFileManager
87 
88 } } // namespace carma::dbms
89 
90 #endif
Class to manage database ingest files and symlinks using stdio.
Class used for configuring a DBConnection.
MonitorDataAreaType
type describing a particular set of directories used in writing, loading, and archiving monitor point...
Class to manage database ingest files and symlinks using FFIO files.
unsigned int frameType
Half second frames since Jan 1, 2000.
Definition: types.h:29
relationships between the monitor and dbms systems
MonitorAverageType
average type of the monitor[point,data file,table]
Various type definitions for util classes.