root/isimud/exchanges/links/fix_to_general_program_options.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. create_program_options

   1 /******************************************************************************
   2 ** $Header: svn+ssh://jmmcg@svn.code.sf.net/p/libjmmcg/code/trunk/libjmmcg/core/exchanges/links/fix_to_mit_main_impl.hpp 2118 2017-08-23 09:42:12Z jmmcg $
   3 **
   4 ** Copyright (c) 2017 by J.M.McGuiness, isimud@hussar.me.uk
   5 **
   6 ** This library is free software; you can redistribute it and/or
   7 ** modify it under the terms of the GNU Lesser General Public
   8 ** License as published by the Free Software Foundation; either
   9 ** version 2.1 of the License, or (at your option) any later version.
  10 **
  11 ** This library is distributed in the hope that it will be useful,
  12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14 ** Lesser General Public License for more details.
  15 **
  16 ** You should have received a copy of the GNU Lesser General Public
  17 ** License along with this library; if not, write to the Free Software
  18 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19 */
  20 
  21 #include "../common/iso_10383_mic_codes.hpp"
  22 
  23 #include "fix_to_general_program_options.hpp"
  24 
  25 namespace isimud { namespace exchanges {
  26 
  27 boost::program_options::options_description
  28 create_program_options() noexcept(false) {
  29         boost::program_options::options_description general(
  30                 "A FIX-to-exchange translator that listens to an IPADDR:PORT combination for a FIX client and connects to the specified ports. The file name indicates the message translation performed & versions. Built with MICs downloaded on: '" LIBJMMCG_ISO_10383_MIC_XML_GENERATED_DATE "'. For details regarding the properties of the translator see the documentation that came with the distribution. Copyright (c) J.M.McGuiness, consultant@isimud.ltd.uk. http://libjmmcg.sf.net/ Distributed under the terms of the GPL v2.1."
  31         );
  32         general.add_options()
  33                 ("help", "Print this help message.")
  34                 ("version", "Print the build number of this program.")
  35         ;
  36         boost::program_options::options_description all("All options.");
  37         all.add(general);
  38         return all;
  39 }
  40 
  41 } }

/* [<][>][^][v][top][bottom][index][help] */