$darkmode
cloe_fwd.hpp File Reference
#include <chrono>
#include <functional>
#include <memory>
#include <spdlog/fwd.h>
#include <fable/fable_fwd.hpp>
Include dependency graph for cloe_fwd.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using cloe::Duration = std::chrono::nanoseconds
 
using cloe::Logger = std::shared_ptr< spdlog::logger >
 
using cloe::LogLevel = spdlog::level::level_enum
 
using cloe::Handler = std::function< void(const Request &, Response &)>
 
using cloe::TriggerPtr = std::unique_ptr< Trigger >
 
using cloe::EventPtr = std::unique_ptr< Event >
 
using cloe::EventFactory = TriggerFactory< Event >
 
using cloe::ActionPtr = std::unique_ptr< Action >
 
using cloe::ActionFactory = TriggerFactory< Action >
 

Detailed Description

This file provides forward declarations.

Typedef Documentation

◆ ActionFactory

typedef TriggerFactory< Action > cloe::ActionFactory

An ActionFactory parses a single JSON object or string into an action.

See also
cloe/trigger/example_actions.hpp

◆ Duration

typedef std::chrono::nanoseconds cloe::Duration

Duration is an alias for std::chrono::nanoseconds, which represents the default unit of time for simulated time and spans roughly +/- 290 years.

Warning: the default constructor does not exist. If you want zero time, you need to set it explicitly, for example inside a class:

Duration time_ = Duration(0);
std::chrono::nanoseconds Duration
Definition: cloe_fwd.hpp:36

◆ EventFactory

typedef TriggerFactory< Event > cloe::EventFactory

An EventFactory parses a single JSON object or string into an Event.

See also
cloe/registrar.hpp
cloe/trigger/nil_event.hpp

◆ Handler

typedef std::function< void(const Request &, Response &)> cloe::Handler

A Handler receives a Request and a Response and can be registered with a server and an endpoint.

Future

In the future, this type may be converted from a simple function to a class.