LCOV - code coverage report
Current view: top level - src/tools/kdb - specmount.hpp (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 8 8 100.0 %
Date: 2019-09-12 12:28:41 Functions: 4 4 100.0 %

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief header file of spec mount command
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  *
       8             :  */
       9             : 
      10             : 
      11             : #ifndef SPEC_MOUNT_HPP
      12             : #define SPEC_MOUNT_HPP
      13             : 
      14             : #include <mountbase.hpp>
      15             : 
      16             : namespace kdb
      17             : {
      18             : namespace tools
      19             : {
      20             : class MountBackendInterface;
      21             : }
      22             : } // namespace kdb
      23             : 
      24             : class SpecMountCommand : public MountBaseCommand
      25             : {
      26             :         void outputMtab (Cmdline const & cl);
      27             :         void setMountpoint (Cmdline const & cl);
      28             :         void buildBackend (Cmdline const & cl);
      29             : 
      30             : public:
      31             :         SpecMountCommand ();
      32             :         ~SpecMountCommand ();
      33             : 
      34          11 :         virtual std::string getShortOptions () override
      35             :         {
      36          33 :                 return "qRcW";
      37             :         }
      38             : 
      39          11 :         virtual std::string getSynopsis () override
      40             :         {
      41          33 :                 return "[mountpoint] [plugin [config] [..]]";
      42             :         }
      43             : 
      44         167 :         virtual std::string getShortHelpText () override
      45             :         {
      46             :                 return "Mount a new backend by specification. All necessary plugins will be loaded automatically, depending on the "
      47         501 :                        "metadata.";
      48             :         }
      49             : 
      50          11 :         virtual std::string getLongHelpText () override
      51             :         {
      52          33 :                 return "";
      53             :         }
      54             : 
      55             :         virtual int execute (Cmdline const & cmdline) override;
      56             : };
      57             : 
      58             : #endif

Generated by: LCOV version 1.13