OpenVPN 3 Core Library
Loading...
Searching...
No Matches
DroughtMeasure Class Reference
Collaboration diagram for DroughtMeasure:
[legend]

Public Member Functions

 OPENVPN_SIMPLE_EXCEPTION (drought_limit_exceeded)
 
 DroughtMeasure (const std::string &name_arg, TimePtr now_arg)
 
void event ()
 
Time::Duration operator() () const
 

Private Attributes

TimePtr now
 
Time last_event
 
Time::Duration drought
 
std::string name
 

Detailed Description

Definition at line 292 of file test_proto.cpp.

Constructor & Destructor Documentation

◆ DroughtMeasure()

DroughtMeasure::DroughtMeasure ( const std::string &  name_arg,
TimePtr  now_arg 
)
inline

Definition at line 297 of file test_proto.cpp.

Member Function Documentation

◆ event()

void DroughtMeasure::event ( )
inline

Definition at line 302 of file test_proto.cpp.

Here is the caller graph for this function:

◆ OPENVPN_SIMPLE_EXCEPTION()

DroughtMeasure::OPENVPN_SIMPLE_EXCEPTION ( drought_limit_exceeded  )

◆ operator()()

Time::Duration DroughtMeasure::operator() ( ) const
inline

Definition at line 327 of file test_proto.cpp.

Member Data Documentation

◆ drought

Time::Duration DroughtMeasure::drought
private

Definition at line 335 of file test_proto.cpp.

◆ last_event

Time DroughtMeasure::last_event
private

Definition at line 334 of file test_proto.cpp.

◆ name

std::string DroughtMeasure::name
private

Definition at line 336 of file test_proto.cpp.

◆ now

TimePtr DroughtMeasure::now
private

Definition at line 333 of file test_proto.cpp.


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