MRPT  2.0.3
BaseAppInitializableCLI.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <string>
12 
13 namespace mrpt::apps
14 {
15 /** Virtual interface for applications that initialize from CLI parameters.
16  *
17  * \ingroup mrpt_apps_grp
18  */
20 {
21  public:
22  BaseAppInitializableCLI() = default;
23  virtual ~BaseAppInitializableCLI() = default;
24 
25  protected:
26  virtual void impl_initialize(int argc, const char** argv) = 0;
27  virtual std::string impl_get_usage() const = 0;
28 };
29 
30 } // namespace mrpt::apps
Virtual interface for applications that initialize from CLI parameters.
virtual std::string impl_get_usage() const =0
virtual ~BaseAppInitializableCLI()=default
const char * argv[]
const int argc
virtual void impl_initialize(int argc, const char **argv)=0



Page generated by Doxygen 1.8.14 for MRPT 2.0.3 Git: 8e9e8af54 Wed May 13 17:41:24 2020 +0200 at miƩ may 13 17:55:54 CEST 2020