Gabriele Contini
2020-01-11 1d1082fe695366da3498f528b953203a90fe7385
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * ethernet.hpp
 *
 *  Created on: Jan 11, 2020
 *      Author: devel
 */
 
#ifndef SRC_LIBRARY_PC_IDENTIFIER_ETHERNET_HPP_
#define SRC_LIBRARY_PC_IDENTIFIER_ETHERNET_HPP_
 
#include "identification_strategy.hpp"
 
namespace license {
 
class Ethernet : public IdentificationStrategy {
private:
    const bool use_ip;
 
public:
    Ethernet(bool use_ip);
    virtual ~Ethernet();
    virtual LCC_API_IDENTIFICATION_STRATEGY identification_strategy() const;
    virtual FUNCTION_RETURN identify_pc(PcIdentifier &pc_id) const;
    virtual std::vector<PcIdentifier> alternative_ids() const;
    virtual LCC_EVENT_TYPE validate_identifier(const PcIdentifier &identifier) const;
};
 
} /* namespace license */
 
#endif /* SRC_LIBRARY_PC_IDENTIFIER_ETHERNET_HPP_ */