libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::ChargingStationFeatureValue Class Reference

#include <ChargingStationFeature.h>

+ Inheritance diagram for osmscout::ChargingStationFeatureValue:

Classes

struct  Socket
 

Public Types

enum  SocketType : uint8_t {
  SocketType::Unknown = 0, SocketType::Type1 = 1, SocketType::Typ1Combo = 2, SocketType::Type2 = 3,
  SocketType::Type2Cable = 4, SocketType::Type2Combo = 5, SocketType::Chademo = 6, SocketType::TeslaSupercharger = 7,
  SocketType::TeslaDestination = 8
}
 

Public Member Functions

void AddSocket (const Socket &socket)
 
 ChargingStationFeatureValue ()=default
 
 ChargingStationFeatureValue (const ChargingStationFeatureValue &other)=default
 
const std::vector< Socket > & GetSockets () const
 
bool HasSockets () const
 
ChargingStationFeatureValueoperator= (const FeatureValue &other) override
 
bool operator== (const FeatureValue &other) const override
 
void Read (FileScanner &scanner) override
 Read the value of the Feature from the FileScanner. More...
 
void Write (FileWriter &writer) override
 Write the FeatureValue to disk. More...
 
- Public Member Functions inherited from osmscout::FeatureValue
 FeatureValue ()=default
 
 FeatureValue (const FeatureValue &featureValue)=default
 
virtual std::string GetLabel (const Locale &, size_t) const
 
virtual bool IsFlagSet (size_t) const
 
virtual bool operator!= (const FeatureValue &other) const
 
virtual ~FeatureValue ()=default
 

Member Enumeration Documentation

◆ SocketType

Enumerator
Unknown 
Type1 
Typ1Combo 
Type2 
Type2Cable 
Type2Combo 
Chademo 
TeslaSupercharger 
TeslaDestination 

Constructor & Destructor Documentation

◆ ChargingStationFeatureValue() [1/2]

osmscout::ChargingStationFeatureValue::ChargingStationFeatureValue ( )
default

◆ ChargingStationFeatureValue() [2/2]

osmscout::ChargingStationFeatureValue::ChargingStationFeatureValue ( const ChargingStationFeatureValue other)
default

Member Function Documentation

◆ AddSocket()

void osmscout::ChargingStationFeatureValue::AddSocket ( const Socket socket)
inline

◆ GetSockets()

const std::vector<Socket>& osmscout::ChargingStationFeatureValue::GetSockets ( ) const
inline

◆ HasSockets()

bool osmscout::ChargingStationFeatureValue::HasSockets ( ) const
inline

◆ operator=()

ChargingStationFeatureValue & osmscout::ChargingStationFeatureValue::operator= ( const FeatureValue other)
overridevirtual

Reimplemented from osmscout::FeatureValue.

◆ operator==()

bool osmscout::ChargingStationFeatureValue::operator== ( const FeatureValue other) const
overridevirtual

◆ Read()

void osmscout::ChargingStationFeatureValue::Read ( FileScanner scanner)
overridevirtual

◆ Write()

void osmscout::ChargingStationFeatureValue::Write ( FileWriter writer)
overridevirtual

Write the FeatureValue to disk.

Exceptions
IOException.

Implements osmscout::FeatureValue.

References osmscout::FileWriter::Write(), and osmscout::FileWriter::WriteNumber().


The documentation for this class was generated from the following files: