command-parser.hpp File Reference
#include "core/common.hpp"
#include "command-definition.hpp"
#include "execute-command.hpp"
#include <type_traits>
+ Include dependency graph for command-parser.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nfd::tools::nfdc::CommandParser
 Parses a command. More...
 
class  nfd::tools::nfdc::CommandParser::NoSuchCommandError
 

Namespaces

 nfd
 -status-http-server
 
 nfd::tools
 
 nfd::tools::nfdc
 

Enumerations

enum  nfd::tools::nfdc::AvailableIn : uint8_t {
  nfd::tools::nfdc::AVAILABLE_IN_NONE = 0 ,
  nfd::tools::nfdc::AVAILABLE_IN_ONE_SHOT = 1 << 0 ,
  nfd::tools::nfdc::AVAILABLE_IN_BATCH = 1 << 1 ,
  nfd::tools::nfdc::AVAILABLE_IN_HELP = 1 << 7 ,
  nfd::tools::nfdc::AVAILABLE_IN_ALL = 0xff
}
 Indicates which modes is a command allowed. More...
 
enum class  nfd::tools::nfdc::ParseMode : uint8_t {
  nfd::tools::nfdc::ONE_SHOT = AVAILABLE_IN_ONE_SHOT ,
  nfd::tools::nfdc::BATCH = AVAILABLE_IN_BATCH
}
 Indicates which mode is the parser operated in. More...
 

Functions

std::ostream & nfd::tools::nfdc::operator<< (std::ostream &os, AvailableIn modes)
 
std::ostream & nfd::tools::nfdc::operator<< (std::ostream &os, ParseMode mode)
 
void nfd::tools::nfdc::registerCommands (CommandParser &parser)