Line |
Branch |
Exec |
Source |
1 |
|
|
/***************************************************************************** |
2 |
|
|
* |
3 |
|
|
* Copyright 2010 Richard Hacker (lerichi at gmx dot net) |
4 |
|
|
* |
5 |
|
|
* This file is part of the pdserv library. |
6 |
|
|
* |
7 |
|
|
* The pdserv library is free software: you can redistribute it and/or modify |
8 |
|
|
* it under the terms of the GNU Lesser General Public License as published |
9 |
|
|
* by the Free Software Foundation, either version 3 of the License, or (at |
10 |
|
|
* your option) any later version. |
11 |
|
|
* |
12 |
|
|
* The pdserv library is distributed in the hope that it will be useful, but |
13 |
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
14 |
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
15 |
|
|
* License for more details. |
16 |
|
|
* |
17 |
|
|
* You should have received a copy of the GNU Lesser General Public License |
18 |
|
|
* along with the pdserv library. If not, see <http://www.gnu.org/licenses/>. |
19 |
|
|
* |
20 |
|
|
****************************************************************************/ |
21 |
|
|
|
22 |
|
|
#ifndef MSRCHANNEL_H |
23 |
|
|
#define MSRCHANNEL_H |
24 |
|
|
|
25 |
|
|
#include "Variable.h" |
26 |
|
|
|
27 |
|
|
namespace PdServ { |
28 |
|
|
class Signal; |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
namespace MsrProto { |
32 |
|
|
|
33 |
|
|
class XmlElement; |
34 |
|
|
|
35 |
|
4312 |
class Channel: public Variable { |
36 |
|
|
public: |
37 |
|
|
Channel(const PdServ::Signal *s, size_t index, |
38 |
|
|
const PdServ::DataType& dtype, |
39 |
|
|
const PdServ::DataType::DimType& dim, |
40 |
|
|
size_t offset); |
41 |
|
|
|
42 |
|
|
void setXmlAttributes(XmlElement&, |
43 |
|
|
bool shortReply, bool hex, bool derived, |
44 |
|
|
const char *signalBuf, std::streamsize precision, |
45 |
|
|
struct timespec* time) const; |
46 |
|
|
|
47 |
|
|
const PdServ::Signal* const signal; |
48 |
|
|
}; |
49 |
|
|
|
50 |
|
|
} |
51 |
|
|
|
52 |
|
|
#endif //MSRCHANNEL_H |
53 |
|
|
|