pars 0.2.1.99
Loading...
Searching...
No Matches
pars Namespace Reference

Namespaces

namespace  app
 
namespace  comp
 
namespace  ev
 
namespace  f
 
namespace  net
 

Typedefs

using milli = std::chrono::duration<nng_duration, std::milli>
 

Enumerations

enum class  error { success = 0 }
 
enum class  lf {
  app = 1 , comp = 2 , event = 4 , net = 8 ,
  user = 1073741824
}
 

Functions

std::error_code make_error_code (pars::error e) noexcept
 
template<typename... args_t>
void log (spdlog::source_loc loc, pars::lf lf, spdlog::level::level_enum lvl, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void log (pars::lf lf, spdlog::level::level_enum lvl, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void log (spdlog::source_loc loc, spdlog::level::level_enum lvl, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void log (spdlog::level::level_enum lvl, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void trace (spdlog::source_loc loc, pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void trace (pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void trace (spdlog::source_loc loc, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void trace (spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void debug (spdlog::source_loc loc, pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void debug (pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void debug (spdlog::source_loc loc, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void debug (spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void info (spdlog::source_loc loc, pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void info (pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void info (spdlog::source_loc loc, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void info (spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void warn (spdlog::source_loc loc, pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void warn (pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void warn (spdlog::source_loc loc, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void warn (spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void err (spdlog::source_loc loc, pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void err (pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void err (spdlog::source_loc loc, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void err (spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void critical (spdlog::source_loc loc, pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void critical (pars::lf lf, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void critical (spdlog::source_loc loc, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 
template<typename... args_t>
void critical (spdlog::format_string_t< args_t... > fmt, args_t &&... args)
 

Typedef Documentation

◆ milli

using pars::milli = std::chrono::duration<nng_duration, std::milli>

Definition at line 47 of file init.h.

Enumeration Type Documentation

◆ error

enum class pars::error
strong
Enumerator
success 

Definition at line 40 of file err.h.

41{
42 success = 0
43};
@ success
Definition err.h:75

◆ lf

enum class pars::lf
strong
Enumerator
app 
comp 
event 
net 
user 

Definition at line 39 of file flags.h.

40{
41 app = 1,
42 comp = 2,
43 event = 4,
44 net = 8,
45 user = 1073741824,
46};
@ comp
Definition flags.h:42
@ net
Definition flags.h:44
@ app
Definition flags.h:41
@ user
Definition flags.h:45

Function Documentation

◆ critical() [1/4]

template<typename... args_t>
void pars::critical ( pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 246 of file log.h.

248{
249 ::pars::log(lf, spdlog::level::critical, fmt, std::forward<args_t>(args)...);
250}
lf
Definition flags.h:40
void log(spdlog::source_loc loc, pars::lf lf, spdlog::level::level_enum lvl, spdlog::format_string_t< args_t... > fmt, args_t &&... args)
Definition log.h:64

References log().

Here is the call graph for this function:

◆ critical() [2/4]

template<typename... args_t>
void pars::critical ( spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 260 of file log.h.

261{
262 ::pars::log(spdlog::level::critical, fmt, std::forward<args_t>(args)...);
263}

References log().

Here is the call graph for this function:

◆ critical() [3/4]

template<typename... args_t>
void pars::critical ( spdlog::source_loc loc,
pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 238 of file log.h.

240{
241 ::pars::log(lf, loc, spdlog::level::critical, fmt,
242 std::forward<args_t>(args)...);
243}

References log().

Here is the call graph for this function:

◆ critical() [4/4]

template<typename... args_t>
void pars::critical ( spdlog::source_loc loc,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 253 of file log.h.

255{
256 ::pars::log(loc, spdlog::level::critical, fmt, std::forward<args_t>(args)...);
257}

References log().

Here is the call graph for this function:

◆ debug() [1/4]

template<typename... args_t>
void pars::debug ( pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 137 of file log.h.

139{
140 ::pars::log(lf, spdlog::level::debug, fmt, std::forward<args_t>(args)...);
141}

References log().

Here is the call graph for this function:

◆ debug() [2/4]

template<typename... args_t>
void pars::debug ( spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 151 of file log.h.

152{
153 ::pars::log(spdlog::level::debug, fmt, std::forward<args_t>(args)...);
154}

References log().

Here is the call graph for this function:

◆ debug() [3/4]

template<typename... args_t>
void pars::debug ( spdlog::source_loc loc,
pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

◆ debug() [4/4]

template<typename... args_t>
void pars::debug ( spdlog::source_loc loc,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 144 of file log.h.

146{
147 ::pars::log(loc, spdlog::level::debug, fmt, std::forward<args_t>(args)...);
148}

References log().

Here is the call graph for this function:

◆ err() [1/4]

template<typename... args_t>
void pars::err ( pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 218 of file log.h.

220{
221 ::pars::log(lf, spdlog::level::err, fmt, std::forward<args_t>(args)...);
222}

References log().

Here is the call graph for this function:

◆ err() [2/4]

template<typename... args_t>
void pars::err ( spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 232 of file log.h.

233{
234 ::pars::log(spdlog::level::err, fmt, std::forward<args_t>(args)...);
235}

References log().

Here is the call graph for this function:

◆ err() [3/4]

template<typename... args_t>
void pars::err ( spdlog::source_loc loc,
pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 211 of file log.h.

213{
214 ::pars::log(loc, lf, spdlog::level::err, fmt, std::forward<args_t>(args)...);
215}

References log().

Referenced by pars::net::op::abort(), pars::ev::runner::exec(), pars::net::op::recv(), pars::app::single< component_type >::run(), and pars::net::op::send().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err() [4/4]

template<typename... args_t>
void pars::err ( spdlog::source_loc loc,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 225 of file log.h.

227{
228 ::pars::log(loc, spdlog::level::err, fmt, std::forward<args_t>(args)...);
229}

References log().

Here is the call graph for this function:

◆ info() [1/4]

template<typename... args_t>
void pars::info ( pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 164 of file log.h.

166{
167 ::pars::log(lf, spdlog::level::info, fmt, std::forward<args_t>(args)...);
168}

References log().

Here is the call graph for this function:

◆ info() [2/4]

template<typename... args_t>
void pars::info ( spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 178 of file log.h.

179{
180 ::pars::log(spdlog::level::info, fmt, std::forward<args_t>(args)...);
181}

References log().

Here is the call graph for this function:

◆ info() [3/4]

template<typename... args_t>
void pars::info ( spdlog::source_loc loc,
pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 157 of file log.h.

159{
160 ::pars::log(loc, lf, spdlog::level::info, fmt, std::forward<args_t>(args)...);
161}

References log().

Here is the call graph for this function:

◆ info() [4/4]

template<typename... args_t>
void pars::info ( spdlog::source_loc loc,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 171 of file log.h.

173{
174 ::pars::log(loc, spdlog::level::info, fmt, std::forward<args_t>(args)...);
175}

References log().

Here is the call graph for this function:

◆ log() [1/4]

template<typename... args_t>
void pars::log ( pars::lf lf,
spdlog::level::level_enum lvl,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 76 of file log.h.

78{
79 if constexpr (pars_log_enabled)
80 {
81 if (pars_log_flags & lf)
82 ::spdlog::log(lvl, fmt, std::forward<args_t>(args)...);
83 }
84}

◆ log() [2/4]

template<typename... args_t>
void pars::log ( spdlog::level::level_enum lvl,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 94 of file log.h.

96{
97 ::pars::log(pars::lf::user, lvl, fmt, std::forward<args_t>(args)...);
98}

References log(), and user.

Here is the call graph for this function:

◆ log() [3/4]

template<typename... args_t>
void pars::log ( spdlog::source_loc loc,
pars::lf lf,
spdlog::level::level_enum lvl,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 64 of file log.h.

67{
68 if constexpr (pars_log_enabled)
69 {
70 if (pars_log_flags & lf)
71 ::spdlog::log(loc, lvl, fmt, std::forward<args_t>(args)...);
72 }
73}

Referenced by critical(), critical(), critical(), critical(), debug(), debug(), debug(), debug(), err(), err(), err(), err(), info(), info(), info(), info(), log(), log(), trace(), trace(), trace(), trace(), warn(), warn(), warn(), and warn().

Here is the caller graph for this function:

◆ log() [4/4]

template<typename... args_t>
void pars::log ( spdlog::source_loc loc,
spdlog::level::level_enum lvl,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 87 of file log.h.

89{
90 ::pars::log(loc, pars::lf::user, lvl, fmt, std::forward<args_t>(args)...);
91}

References log(), and user.

Here is the call graph for this function:

◆ make_error_code()

std::error_code pars::make_error_code ( pars::error e)
inlinenoexcept

Definition at line 66 of file err.h.

67{
68 return std::error_code(static_cast<int>(e), pars::error_category());
69}

◆ trace() [1/4]

template<typename... args_t>
void pars::trace ( pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 109 of file log.h.

111{
112 ::pars::log(lf, spdlog::level::trace, fmt, std::forward<args_t>(args)...);
113}

References log().

Here is the call graph for this function:

◆ trace() [2/4]

template<typename... args_t>
void pars::trace ( spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 123 of file log.h.

124{
125 ::pars::log(spdlog::level::trace, fmt, std::forward<args_t>(args)...);
126}

References log().

Here is the call graph for this function:

◆ trace() [3/4]

template<typename... args_t>
void pars::trace ( spdlog::source_loc loc,
pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 101 of file log.h.

103{
104 ::pars::log(loc, lf, spdlog::level::trace, fmt,
105 std::forward<args_t>(args)...);
106}

References log().

Here is the call graph for this function:

◆ trace() [4/4]

template<typename... args_t>
void pars::trace ( spdlog::source_loc loc,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 116 of file log.h.

118{
119 ::pars::log(loc, spdlog::level::trace, fmt, std::forward<args_t>(args)...);
120}

References log().

Here is the call graph for this function:

◆ warn() [1/4]

template<typename... args_t>
void pars::warn ( pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 191 of file log.h.

193{
194 ::pars::log(lf, spdlog::level::warn, fmt, std::forward<args_t>(args)...);
195}

References log().

Here is the call graph for this function:

◆ warn() [2/4]

template<typename... args_t>
void pars::warn ( spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 205 of file log.h.

206{
207 ::pars::log(spdlog::level::warn, fmt, std::forward<args_t>(args)...);
208}

References log().

Here is the call graph for this function:

◆ warn() [3/4]

template<typename... args_t>
void pars::warn ( spdlog::source_loc loc,
pars::lf lf,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 184 of file log.h.

186{
187 ::pars::log(loc, lf, spdlog::level::warn, fmt, std::forward<args_t>(args)...);
188}

References log().

Here is the call graph for this function:

◆ warn() [4/4]

template<typename... args_t>
void pars::warn ( spdlog::source_loc loc,
spdlog::format_string_t< args_t... > fmt,
args_t &&... args )
inline

Definition at line 198 of file log.h.

200{
201 ::pars::log(loc, spdlog::level::warn, fmt, std::forward<args_t>(args)...);
202}

References log().

Here is the call graph for this function: