Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
ConfigEntry.hxx File Reference
#include <endian.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include <functional>
#include "openlcb/ConfigRenderer.hxx"

Go to the source code of this file.

Classes

class  openlcb::ConfigReference
 Class representing a particular location in the configuration space. More...
 
class  openlcb::ConfigEntryBase
 Base class for individual configuration entries. More...
 
class  openlcb::NumericConfigEntry< TR >
 Implementation class for numeric configuration entries, templated by the integer type. More...
 
class  openlcb::EventConfigEntry
 Implementation class for event ID configuration entries. More...
 
class  openlcb::StringConfigEntry< SIZE >
 Implementation class for string configuration entries. More...
 
class  openlcb::BytesConfigEntry< SIZE >
 Implementation class for internal data bytes configuration entries. More...
 

Namespaces

namespace  openlcb
 

Typedefs

typedef std::function< void(unsigned)> openlcb::EventOffsetCallback
 Function declaration that will be called with all event offsets that exist in the configuration space.
 
using openlcb::Uint8ConfigEntry = NumericConfigEntry< uint8_t >
 Unsigned numeric config entry with 1 byte width.
 
using openlcb::Uint16ConfigEntry = NumericConfigEntry< uint16_t >
 Unsigned numeric config entry with 2 bytes width.
 
using openlcb::Uint32ConfigEntry = NumericConfigEntry< uint32_t >
 Unsigned numeric config entry with 4 bytes width.
 
using openlcb::Uint64ConfigEntry = NumericConfigEntry< uint64_t >
 Unsigned numeric config entry with 8 bytes width.
 
using openlcb::Int8ConfigEntry = NumericConfigEntry< int8_t >
 Signed numeric config entry with 1 byte width.
 
using openlcb::Int16ConfigEntry = NumericConfigEntry< int16_t >
 Signed numeric config entry with 2 bytes width.
 
using openlcb::Int32ConfigEntry = NumericConfigEntry< int32_t >
 Signed numeric config entry with 4 bytes width.
 
using openlcb::Int64ConfigEntry = NumericConfigEntry< int64_t >
 Signed numeric config entry with 8 bytes width.
 

Detailed Description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Configuration option reader classes.

Author
Balazs Racz
Date
31 May 2015

Definition in file ConfigEntry.hxx.