#include <notify.h>
|
| | Notify (const char *spec) |
| int | notify (const char *tag, const char *s,...) |
Definition at line 37 of file notify.h.
◆ Notify()
| tools::Notify::Notify |
( |
const char * | spec | ) |
|
Definition at line 47 of file notify.cpp.
48{
50
51 boost::split(args, spec, boost::is_any_of(" \t"), boost::token_compress_on);
53 if (strchr(spec, '\'') || strchr(spec, '\"') || strchr(spec, '\\'))
54 MWARNING(
"A notification spec contains a quote or backslash: note that these are handled verbatim, which may not be the intent");
55 filename = args[0];
57}
#define CHECK_AND_ASSERT_THROW_MES(expr, message)
bool is_file_exist(const std::string &path)
◆ notify()
| int tools::Notify::notify |
( |
const char * | tag, |
|
|
const char * | s, |
|
|
| ... ) |
Definition at line 65 of file notify.cpp.
66{
67 std::vector<std::string> margs = args;
68
69 replace(margs, tag, s);
70
71 va_list ap;
72 va_start(ap, s);
73 while ((tag = va_arg(ap, const char*)))
74 {
75 s = va_arg(ap, const char*);
76 replace(margs, tag, s);
77 }
78 va_end(ap);
79
81}
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/common/notify.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/common/notify.cpp