appkit  1.5.1
RoadNarrows Robotics Application Kit
CommandLine.h File Reference

Command line interface class interface. More...

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/appkit/StringTheory.h"
#include "rnr/appkit/RegEx.h"
#include "rnr/appkit/LogBook.h"
#include "rnr/appkit/ReadLine.h"
#include "rnr/appkit/Token.h"
#include "rnr/appkit/CmdCore.h"
#include "rnr/appkit/CmdExtArg.h"
#include "rnr/appkit/CmdArgDef.h"
#include "rnr/appkit/CmdFormDef.h"
#include "rnr/appkit/CmdDef.h"

Go to the source code of this file.

Classes

struct  rnr::cmd::CmdExec
 Helper class to hold a command line execution function. More...
 
union  rnr::cmd::CmdExec::FnVar
 Union of all variant execution functions. More...
 
class  rnr::cmd::DataSect
 Command line interface data section class. More...
 
class  rnr::cmd::CommandLine
 CommandLine class. More...
 

Namespaces

 rnr
 RoadNarrows Robotics.
 
 rnr::cmd
 Commands.
 

Typedefs

typedef int(* rnr::cmd::CmdExec1Func) (const str::StringVec &argv)
 Command execution function type, variant 1. More...
 
typedef int(* rnr::cmd::CmdExec2Func) (const CmdExtArgVec &argv)
 Command execution function type, variant 2. More...
 
typedef int(* rnr::cmd::CmdExec3Func) (CommandLine &cli, const CmdExtArgVec &argv)
 Command execution function type, variant 3. More...
 
typedef std::map< unsigned, CmdDef > rnr::cmd::CmdDefMap
 command map type
 
typedef CmdDefMap::iterator rnr::cmd::CmdDefIter
 cmd iterator type
 
typedef CmdDefMap::const_iterator rnr::cmd::CmdDefCIter
 cmd const iter type
 
typedef std::map< unsigned, CmdExec > rnr::cmd::CmdExecMap
 exec map type
 
typedef CmdExecMap::iterator rnr::cmd::CmdExecIter
 exec iterator type
 
typedef CmdExecMap::const_iterator rnr::cmd::CmdExecCIter
 exec const iter type
 
typedef std::map< std::string, DataSect > rnr::cmd::DataSectMap
 section map type
 
typedef DataSectMap::iterator rnr::cmd::DataSectIter
 iterator type
 
typedef DataSectMap::const_iterator rnr::cmd::DataSectCIter
 const iter type
 
typedef str::StringVec rnr::cmd::PromptStack
 prompt stack type
 

Detailed Description

Command line interface class interface.

Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
Copyright
© 2016-2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved
License:
MIT

Definition in file CommandLine.h.