w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::Rtools Namespace Reference

FIXME_docs. More...

Functions

std::string Flags2String (uint32_t flags, const RflagName *fnam, char delim)
 FIXME_docs.
 
bool String2Long (const std::string &str, long &res, RerrMsg &emsg, int base)
 FIXME_docs.
 
bool String2Long (const std::string &str, unsigned long &res, RerrMsg &emsg, int base)
 FIXME_docs.
 
bool CreateBackupFile (const std::string &fname, size_t nbackup, RerrMsg &emsg)
 FIXME_docs.
 
bool CreateBackupFile (const RparseUrl &purl, RerrMsg &emsg)
 FIXME_docs.
 
void Catch2Cerr (const char *msg, std::function< void()> func)
 FIXME_docs.
 
void Word2Bytes (uint16_t word, uint16_t &byte0, uint16_t &byte1)
 FIXME_docs.
 
uint16_t Bytes2Word (uint16_t byte0, uint16_t byte1)
 FIXME_docs.
 

Detailed Description

FIXME_docs.

Function Documentation

◆ Flags2String()

std::string Retro::Rtools::Flags2String ( uint32_t  flags,
const RflagName fnam,
char  delim 
)

FIXME_docs.

Definition at line 48 of file Rtools.cpp.

References Retro::RflagName::mask, and Retro::RflagName::name.

Referenced by Retro::RlinkCommand::Dump(), and Retro::RlinkCommand::Print().

◆ String2Long() [1/2]

bool Retro::Rtools::String2Long ( const std::string &  str,
long &  res,
RerrMsg emsg,
int  base 
)

◆ String2Long() [2/2]

bool Retro::Rtools::String2Long ( const std::string &  str,
unsigned long &  res,
RerrMsg emsg,
int  base 
)

FIXME_docs.

Definition at line 82 of file Rtools.cpp.

References Retro::RerrMsg::Init().

◆ CreateBackupFile() [1/2]

bool Retro::Rtools::CreateBackupFile ( const std::string &  fname,
size_t  nbackup,
RerrMsg emsg 
)

◆ CreateBackupFile() [2/2]

bool Retro::Rtools::CreateBackupFile ( const RparseUrl purl,
RerrMsg emsg 
)

FIXME_docs.

Definition at line 154 of file Rtools.cpp.

References CreateBackupFile(), Retro::RparseUrl::FindOpt(), Retro::RparseUrl::Path(), and String2Long().

◆ Catch2Cerr()

◆ Word2Bytes()

void Retro::Rtools::Word2Bytes ( uint16_t  word,
uint16_t &  byte0,
uint16_t &  byte1 
)
inline

FIXME_docs.

Definition at line 20 of file Rtools.ipp.

◆ Bytes2Word()

uint16_t Retro::Rtools::Bytes2Word ( uint16_t  byte0,
uint16_t  byte1 
)
inline

FIXME_docs.

Definition at line 30 of file Rtools.ipp.

Referenced by Retro::Rw11CntlDEUNA::ExecGetcmd().