fix8  version 1.4.0
Open Source C++ FIX Framework
f8utils.hpp File Reference
#include <iostream>
#include <string>
#include <memory>
#include <mutex>
#include <Poco/DateTime.h>
#include <Poco/Net/SocketAddress.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <regex.h>
#include <fix8/f8dll.h>

Go to the source code of this file.

Classes

class  FIX8::RegMatch
 A class to contain regex matches using RegExp. More...
 
class  FIX8::RegExp
 POSIX regex wrapper class. More...
 
struct  FIX8::StringPtrLessThanNoCase
 Case-insensitive string comparison, pointer version. More...
 
struct  FIX8::StringPtrLessThan
 Case-sensitive string comparison, pointer version. More...
 
struct  FIX8::StringLessThanNoCase
 Case-insensitive string comparison. More...
 
class  FIX8::ebitset< T, B >
 Bitset for enums. More...
 
class  FIX8::ebitset_r< T, B >
 Atomic bitset for enums. More...
 
class  FIX8::Singleton< T >
 
class  FIX8::fdinbuf
 Create a streambuf from an open file descriptor. More...
 
class  FIX8::tty_save_state
 
class  FIX8::filestdin
 Abstract file or stdin input. More...
 

Namespaces

 FIX8
 

Macros

#define STRINGOF(x)   #x
 
#define STRINGIFY(x)   STRINGOF(x)
 
#define FILE_LINE   __FILE__ ":" STRINGIFY(__LINE__)
 

Typedefs

using FIX8::Package_info = std::map< f8String, f8String >
 

Functions

F8API std::string & FIX8::InPlaceStrToUpper (std::string &src)
 
F8API std::string & FIX8::InPlaceStrToLower (std::string &src)
 
F8API std::string FIX8::StrToLower (const std::string &src)
 
F8API int FIX8::decode_dow (const std::string &from)
 
F8API std::string & FIX8::CheckAddTrailingSlash (std::string &source)
 
F8API std::string & FIX8::InPlaceReplaceInSet (const std::string &iset, std::string &src, const char repl='_')
 
F8API std::string FIX8::Str_error (const int err, const char *str=0)
 
F8API const std::string & FIX8::GetTimeAsStringMS (std::string &result, const class Tickval *tv=0, const unsigned dplaces=6, bool use_gm=false)
 
std::string FIX8::GetTimeAsStringMS (const class Tickval *tv, const unsigned dplaces=6, bool use_gm=false)
 
F8API const std::string & FIX8::GetTimeAsStringMini (std::string &result, const Tickval *tv)
 
std::string FIX8::GetTimeAsStringMini (const Tickval *tv)
 
std::string FIX8::trim (const std::string &source, const std::string &ws=" \t")
 
const std::string & FIX8::trim (std::string &source, const std::string &ws=" \t")
 
F8API const Package_info & FIX8::package_info ()
 
F8API f8String FIX8::find_package_info_string (const f8String &what)
 
template<typename T >
void FIX8::ignore_value (T val)
 
template<typename T >
void FIX8::ignore_value (T *val)
 
template<typename T >
FIX8::rotl (const T val, const int times)
 
template<typename T >
FIX8::rotr (const T val, const int times)
 
unsigned FIX8::ROT13Hash (const std::string &str)
 
unsigned FIX8::rothash (unsigned result, unsigned value)
 
template<typename _CharT , typename _Traits , typename _Alloc >
bool FIX8::operator% (const std::basic_string< _CharT, _Traits, _Alloc > &__lhs, const std::basic_string< _CharT, _Traits, _Alloc > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Alloc >
bool FIX8::operator% (const _CharT *__lhs, const std::basic_string< _CharT, _Traits, _Alloc > &__rhs)
 
template<typename _CharT , typename _Traits , typename _Alloc >
bool FIX8::operator% (const std::basic_string< _CharT, _Traits, _Alloc > &__lhs, const _CharT *__rhs)
 
template<typename _CharT , typename _Traits , typename _Alloc >
bool FIX8::operator^ (const std::basic_string< _CharT, _Traits, _Alloc > &__lhs, const std::basic_string< _CharT, _Traits, _Alloc > &__rhs)
 
F8API void FIX8::create_path (const std::string &path)
 
template<typename T >
FIX8::get_value (const std::string &source)
 
template<>
unsigned FIX8::get_value (const std::string &source)
 
template<>
int FIX8::get_value (const std::string &source)
 
template<>
double FIX8::get_value (const std::string &source)
 
template<>
float FIX8::get_value (const std::string &source)
 
template<>
bool FIX8::get_value (const std::string &source)
 
template<typename T >
FIX8::fast_atoi (const char *str, const char term='\0')
 
template<typename T >
size_t FIX8::itoa (T value, char *result, int base)
 Fast itoa. More...
 
template<>
size_t FIX8::itoa< unsigned int > (unsigned int value, char *result, int base)
 Fast itoa - unsigned int specialisation. More...
 
fp_type FIX8::fast_atof (const char *p)
 
size_t FIX8::modp_dtoa (double value, char *str, int prec)
 Convert double to ascii. More...
 
constexpr unsigned FIX8::bitsum ()
 empty argument version More...
 
template<typename T , typename... Args>
constexpr unsigned FIX8::bitsum (T value, Args...args)
 
template<typename T >
FIX8::enum_str_get (const std::vector< std::string > &sset, const std::string &what, const T def, bool ignorecase=false)
 
F8API int FIX8::get_umask ()
 
bool FIX8::exist (const std::string &fname)
 
void FIX8::split_path (const std::string &source, std::string &filepart, std::string &dirpart)
 
char * FIX8::CopyString (const std::string &src, char *target, unsigned limit=0)
 

Macro Definition Documentation

#define STRINGIFY (   x)    STRINGOF(x)

Definition at line 67 of file f8utils.hpp.

Referenced by FIX8::package_info().

#define STRINGOF (   x)    #x

Definition at line 66 of file f8utils.hpp.