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

          Line data    Source code
       1             : #ifndef EDITOR_HPP
       2             : #define EDITOR_HPP
       3             : 
       4             : #include "coloredkdbio.hpp"
       5             : #include <command.hpp>
       6             : #include <kdb.hpp>
       7             : 
       8             : using namespace std;
       9             : 
      10             : class EditorCommand : public Command
      11             : {
      12             :         std::string filename;
      13             : 
      14             : public:
      15             :         EditorCommand ();
      16             :         ~EditorCommand ();
      17             : 
      18             :         virtual int execute (Cmdline const & cmdline);
      19             :         void tmpFile ();
      20             : 
      21           0 :         virtual std::string getShortOptions ()
      22             :         {
      23           0 :                 return "sieN";
      24             :         }
      25             : 
      26           0 :         virtual std::string getSynopsis ()
      27             :         {
      28           0 :                 return "[options] key-name [format]";
      29             :         }
      30             : 
      31          78 :         virtual std::string getShortHelpText ()
      32             :         {
      33         234 :                 return "Use your editor for editing KDB.";
      34             :         }
      35             : 
      36           0 :         virtual std::string getLongHelpText ()
      37             :         {
      38           0 :                 return "See kdb help editor\n";
      39             :         }
      40             : };
      41             : 
      42             : #endif

Generated by: LCOV version 1.13