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 "Myfix_types.hpp"
#include "Myfix_router.hpp"
#include "Myfix_classes.hpp"
#include "myfix.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 myfix.cpp.
f8print – f8 protocol log printer
Usage: f8print [-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.
f8print myfix_server_protocol.log
cat myfix_client_protocol.log | f8print -
Definition in file myprint.cpp.
using MessageCount = map<string, unsigned> |
Definition at line 102 of file myprint.cpp.
const string GETARGLIST | ( | "hsvo:c" | ) |
Referenced by main(), and print_usage().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 118 of file myprint.cpp.
References FIX8::F8MetaCntx::_beginStr, FIX8::BaseMsgEntry::_name, FIX8::TEX::ctx(), FIX8_MAX_MSG_LENGTH, 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 228 of file myprint.cpp.
References UsageMan::add(), GETARGLIST(), UsageMan::print(), and UsageMan::setdesc().
Referenced by main().
void sig_handler | ( | int | sig | ) |
Definition at line 105 of file myprint.cpp.
References term_received().
Referenced by main().
bool summary | ( | false | ) |
Referenced by main().
bool term_received | ( | false | ) |
Referenced by client_process(), main(), and sig_handler().