ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Attributes | Friends | List of all members
ocpp::v2::ComponentKey Struct Reference

Class that holds a component. More...

#include <init_device_model_db.hpp>

Public Attributes

std::optional< uint64_t > db_id
 Component id in the database.
 
std::string name
 Component name.
 
std::optional< std::string > instance
 Component instance.
 
std::optional< int32_t > evse_id
 Component evse id.
 
std::optional< int32_t > connector_id
 Component connector id.
 
std::vector< std::string > required
 List of required variables.
 

Friends

bool operator< (const ComponentKey &l, const ComponentKey &r)
 operator <, needed to add this class as key in a map. More...
 

Detailed Description

Class that holds a component.

When the component is read from the database, the component id will be set. When the component is read from the component config file, the 'required' vector will be filled.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const ComponentKey l,
const ComponentKey r 
)
friend

operator <, needed to add this class as key in a map.

Parameters
lComponentKey to compare with another ComponentKey
rSecond componentKey to compare with the other ComponentKey
Returns
True if 'l' is 'smaller' than r (should be placed before 'r').

The documentation for this struct was generated from the following file: