PLCnext API Documentation 25.0.2.69
Bit.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8namespace Arp { namespace Plc { namespace Commons { namespace Gds
9{
10
14class Bit
15{
16public: // typedefs
17
18public: // construction/destruction
19 Bit(bool value = false);
20
21public: // operators
22 operator bool(void)const;
23
24public: // setter/getter operations
25 bool IsSet(void)const;
26
27private: // fields
28 bool value;
29};
30
31
32}}}} // end of namespace Arp::Plc::Commons::Gds
33
This class represents a single bit data type.
Definition: Bit.hpp:15
bool IsSet(void) const
Returns the state of a Bit object.
Definition: Bit.cpp:24
Bit(bool value=false)
Constructs and initializes a Bit object.
Definition: Bit.cpp:12
Root namespace for the PLCnext API