ewmscp  ..
Collaboration diagram for key words valid in any context:
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...
 
void copyRequest::base::kw_size (std::string &value) const
 
void copyRequest::base::kw_mtime (std::string &value) const
 
void copyRequest::base::kw_inow (std::string &value) const
 
void copyRequest::base::kw_now (std::string &value) const
 
void copyRequest::base::kw_version (std::string &value) const
 
void copyRequest::base::kw_commit (std::string &value) const
 
void copyRequest::base::kw_prefix (std::string &value) const
 

Detailed Description

Function Documentation

◆ kw_commit()

void copyRequest::base::kw_commit ( std::string &  value) const

Definition at line 298 of file copyRequest.cpp.

298  {
299  value = EWMSCP_COMMIT;
300 }

◆ kw_inow()

void copyRequest::base::kw_inow ( std::string &  value) const

Definition at line 283 of file copyRequest.cpp.

283  {
284  value = std::to_string(std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count());
285 }

◆ kw_mtime()

void copyRequest::base::kw_mtime ( std::string &  value) const

Definition at line 275 of file copyRequest.cpp.

275  {
276  if (readInitialStat == nullptr) {
277  value = "NA";
278  return;
279  }
280  readInitialStat->getMtime(value);
281 }

◆ kw_now()

void copyRequest::base::kw_now ( std::string &  value) const

Definition at line 288 of file copyRequest.cpp.

288  {
289  value = std::to_string(std::chrono::duration_cast<std::chrono::duration<double>>(std::chrono::system_clock::now().time_since_epoch()).count());
290 }

◆ kw_prefix()

void copyRequest::base::kw_prefix ( std::string &  value) const

Definition at line 303 of file copyRequest.cpp.

303  {
304  value = prefix;
305 }

◆ kw_size()

void copyRequest::base::kw_size ( std::string &  value) const

Definition at line 266 of file copyRequest.cpp.

266  {
267  if (readInitialStat == nullptr) {
268  value = "NA";
269  return;
270  }
271  value = std::to_string(readInitialStat->size);
272 }

◆ kw_version()

void copyRequest::base::kw_version ( std::string &  value) const

Definition at line 293 of file copyRequest.cpp.

293  {
294  value = EWMSCP_VERSION;
295 }

Variable Documentation

◆ kw_commit

copyRequest::base::registerme kw_commit("%" "commit",&copyRequest::base::kw_commit)
static

%commit the commit (git hash)

◆ kw_inow

copyRequest::base::registerme kw_inow("%" "inow",&copyRequest::base::kw_inow)
static

%inow the current time in integer seconds since the epoch

◆ kw_mtime

copyRequest::base::registerme kw_mtime("%" "mtime",&copyRequest::base::kw_mtime)
static

%mtime mtime of the source file, in the format "%Y-%m-%d %H:%M:%S.%s" with s the microseconds.

◆ kw_now

copyRequest::base::registerme kw_now("%" "now",&copyRequest::base::kw_now)
static

%now the current time in seconds with fraction since the epoch

◆ kw_prefix

copyRequest::base::registerme kw_prefix("%" "prefix",&copyRequest::base::kw_prefix)
static

%prefix the prefix for log messages

◆ kw_size

copyRequest::base::registerme kw_size("%" "size",&copyRequest::base::kw_size)
static

%size the size of the source file in bytes

◆ kw_version

copyRequest::base::registerme kw_version("%" "version",&copyRequest::base::kw_version)
static

%version the version (git tag + commits-since-tag + shorthash)

copyRequest::base::prefix
std::string prefix
Definition: copyRequest.h:290
copyRequest::base::readInitialStat
std::unique_ptr< const genericStat > readInitialStat
Definition: copyRequest.h:271