DLS  1.6
ChannelPreset.h
1 /******************************************************************************
2  *
3  * This file is part of the Data Logging Service (DLS).
4  *
5  * DLS is free software: you can redistribute it and/or modify it under the
6  * terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version.
9  *
10  * DLS is distributed in the hope that it will be useful, but WITHOUT ANY
11  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with DLS. If not, see <http://www.gnu.org/licenses/>.
17  *
18  *****************************************************************************/
19 
20 #ifndef LibDLSChannelPreset
21 #define LibDLSChannelPreset
22 
23 /*****************************************************************************/
24 
25 #include <string>
26 
27 /*****************************************************************************/
28 
29 #include "Exception.h"
30 #include "globals.h"
31 
32 /*****************************************************************************/
33 
34 namespace LibDLS {
35 
36 /*****************************************************************************/
37 
38 class XmlTag;
39 
40 /*****************************************************************************/
41 
45  public Exception
46 {
47  public:
48  EChannelPreset(const std::string &pmsg):
49  Exception(pmsg) {};
50 };
51 
52 /*****************************************************************************/
53 
60 {
61  public:
62  ChannelPreset();
63  ~ChannelPreset();
64 
65  bool operator!=(const ChannelPreset &) const;
66 
67  void read_from_tag(const XmlTag *);
68  void write_to_tag(XmlTag *) const;
69 
70  void clear();
71 
72  std::string name;
75  unsigned int block_size;
77  unsigned int meta_mask;
79  unsigned int meta_reduction;
81  unsigned int mdct_block_size;
82  double accuracy;
85 };
86 
87 /*****************************************************************************/
88 
89 } // namespace
90 
91 /*****************************************************************************/
92 
93 #endif
std::string name
Kanalname.
Definition: ChannelPreset.h:72
Base class for all LibDLS exceptions.
Definition: Exception.h:36
int format_index
Index des Formates zum Speichern der Daten.
Definition: ChannelPreset.h:80
Global data structures and functions.
double sample_frequency
Abtastrate, mit der aufgezeichnet werden soll.
Definition: ChannelPreset.h:73
Channel preset.
Definition: ChannelPreset.h:59
Definition: Channel.h:44
unsigned int meta_mask
Bitmaske mit den aufzuzeichnenden Meta-Typen.
Definition: ChannelPreset.h:77
ChannelType type
Datentyp des Kanals (nur für MDCT-Prüfung)
Definition: ChannelPreset.h:84
#define DLS_PUBLIC
Macro for public method definitions (empty on non-win32).
Definition: globals.h:57
unsigned int meta_reduction
Meta-Untersetzung.
Definition: ChannelPreset.h:79
ChannelType
Basic DLS channel datatype.
Definition: globals.h:73
double accuracy
Genauigkeit von verlustbehafteten Kompressionen.
Definition: ChannelPreset.h:82
Channel preset exception.
Definition: ChannelPreset.h:44
unsigned int block_size
Blockgröße, mit der aufgezeichnet werden soll.
Definition: ChannelPreset.h:75
unsigned int mdct_block_size
Blockgröße für MDCT.
Definition: ChannelPreset.h:81