ewmscp  ..
Namespaces | Macros | Functions
copyRequest.cpp File Reference

(v0.19-24-g0617ca1 with changes)

#include "copyRequest.h"
#include "inputHandler.h"
#include "md5sum.h"
#include "scoped.h"
#include "syslogstream.h"
#include "throwcall.h"
#include "escapism.h"
#include "git-rev.h"
#include "errMsgQueue.h"
#include <string.h>
#include "timer.h"
Include dependency graph for copyRequest.cpp:

Go to the source code of this file.

Namespaces

 copyRequest
 

Macros

#define defKeyword(kw)
 

Functions

std::ostream & operator<< (std::ostream &stream, const copyRequest::clock_type::time_point &t)
 
std::ostream & copyRequest::operator<< (std::ostream &stream, const copyRequest::clock_type::time_point &t)
 
std::ostream & copyRequest::operator<< (std::ostream &out, const base &request)
 

Variables

static copyRequest::base::registerme kw_size ("%" "size",&copyRequest::base::kw_size)
 
static copyRequest::base::registerme kw_mtime ("%" "mtime",&copyRequest::base::kw_mtime)
 %mtime mtime of the source file, in the format "%Y-%m-%d %H:%M:%S.%s" with s the microseconds. More...
 
static copyRequest::base::registerme kw_inow ("%" "inow",&copyRequest::base::kw_inow)
 %inow the current time in integer seconds since the epoch More...
 
static copyRequest::base::registerme kw_now ("%" "now",&copyRequest::base::kw_now)
 %now the current time in seconds with fraction since the epoch More...
 
static copyRequest::base::registerme kw_version ("%" "version",&copyRequest::base::kw_version)
 %version the version (git tag + commits-since-tag + shorthash) More...
 
static copyRequest::base::registerme kw_commit ("%" "commit",&copyRequest::base::kw_commit)
 %commit the commit (git hash) More...
 
static copyRequest::base::registerme kw_prefix ("%" "prefix",&copyRequest::base::kw_prefix)
 %prefix the prefix for log messages More...
 
static copyRequest::base::registerme kw_reason ("%" "reason",&copyRequest::base::kw_reason)
 
static copyRequest::base::registerme kw_state ("%" "state",&copyRequest::base::kw_state)
 %state the state of the copy request More...
 
static copyRequest::base::registerme kw_finishtime ("%" "finishtime",&copyRequest::base::kw_finishtime)
 %finishtime the time it took from the event timestamp to end of copy More...
 

Macro Definition Documentation

◆ defKeyword

#define defKeyword (   kw)
Value:
static copyRequest::base::registerme kw_##kw("%" #kw,&copyRequest::base::kw_##kw); \
void copyRequest::base::kw_##kw(std::string& value) const

Definition at line 261 of file copyRequest.cpp.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const copyRequest::clock_type::time_point &  t 
)

Definition at line 36 of file copyRequest.cpp.

37  {
38  stream << std::chrono::duration_cast<std::chrono::duration<double>>(t.time_since_epoch()).count();
39  return stream;
40 }
copyRequest::base::registerme
class to register the keyword expansion member functions in the map
Definition: copyRequest.h:161