fix8
version 1.4.0
Open Source C++ FIX Framework
|
#include <iostream>
#include <memory>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <iterator>
#include <algorithm>
#include <typeinfo>
#include <sys/ioctl.h>
#include <signal.h>
#include <termios.h>
#include <errno.h>
#include <string.h>
#include <fix8/f8includes.hpp>
#include <fix8/usage.hpp>
#include <fix8/consolemenu.hpp>
#include "Perf_types.hpp"
#include "Perf_router.hpp"
#include "Perf_classes.hpp"
#include "hftest.hpp"
Go to the source code of this file.
Typedefs | |
using | MessageCount = map< string, unsigned > |
Functions | |
void | print_usage () |
const string | GETARGLIST ("hsvo:c") |
bool | term_received (false) |
bool | summary (false) |
void | sig_handler (int sig) |
int | main (int argc, char **argv) |
This is a simple logfile/logstream printer using the metadata generated for hftest.cpp.
hfprint – f8 protocol log printer
Usage: hfprint [-hosv] <fix protocol file, use '-' for stdin>
-h,–help help, this screen
-o,–offset bytes to skip on each line before parsing FIX message
-s,–summary summary, generate message summary
-v,–version print version then exit
e.g.
hfprint myfix_server_protocol.log
cat myfix_client_protocol.log | hfprint -
Definition in file hfprint.cpp.
using MessageCount = map<string, unsigned> |
Definition at line 102 of file hfprint.cpp.
const string GETARGLIST | ( | "hsvo:c" | ) |
Referenced by main(), and print_usage().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 118 of file hfprint.cpp.
References FIX8::F8MetaCntx::_beginStr, FIX8::BaseMsgEntry::_name, FIX8::TEX::ctx(), FIX8_PACKAGE, FIX8_VERSION, GETARGLIST(), inputFile, print_usage(), sig_handler(), summary(), term_received(), FIX8::F8MetaCntx::version(), and FIX8::f8Exception::what().
void print_usage | ( | ) |
Definition at line 229 of file hfprint.cpp.
References UsageMan::add(), GETARGLIST(), UsageMan::print(), and UsageMan::setdesc().
Referenced by main().
void sig_handler | ( | int | sig | ) |
Definition at line 105 of file hfprint.cpp.
References term_received().
Referenced by main().
bool summary | ( | false | ) |
Referenced by main().
bool term_received | ( | false | ) |
Referenced by main(), and sig_handler().