ldas-tools-diskcacheAPI  2.7.1
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
diskCache::MetaCommand::CommandTable Class Reference

#include <MetaCommands.hh>

Public Types

enum  command_type {
  CMD_UNKNOWN, CMD_DAEMON, CMD_DUMP, CMD_FILENAMES,
  CMD_FILENAMES_RDS, CMD_INTERVALS, CMD_MOUNT_POINT_STATS, CMD_QUIT,
  CMD_RECONFIGURE, CMD_SCAN, CMD_STATUS, CMD_UNKNOWN,
  CMD_DAEMON, CMD_DUMP, CMD_FILENAMES, CMD_FILENAMES_RDS,
  CMD_INTERVALS, CMD_MOUNT_POINT_STATS, CMD_QUIT, CMD_RECONFIGURE,
  CMD_SCAN, CMD_STATUS, CMD_UNKNOWN, CMD_DAEMON,
  CMD_DUMP, CMD_FILENAMES, CMD_FILENAMES_RDS, CMD_INTERVALS,
  CMD_MOUNT_POINT_STATS, CMD_QUIT, CMD_RECONFIGURE, CMD_SCAN,
  CMD_STATUS
}
 
enum  command_type {
  CMD_UNKNOWN, CMD_DAEMON, CMD_DUMP, CMD_FILENAMES,
  CMD_FILENAMES_RDS, CMD_INTERVALS, CMD_MOUNT_POINT_STATS, CMD_QUIT,
  CMD_RECONFIGURE, CMD_SCAN, CMD_STATUS, CMD_UNKNOWN,
  CMD_DAEMON, CMD_DUMP, CMD_FILENAMES, CMD_FILENAMES_RDS,
  CMD_INTERVALS, CMD_MOUNT_POINT_STATS, CMD_QUIT, CMD_RECONFIGURE,
  CMD_SCAN, CMD_STATUS, CMD_UNKNOWN, CMD_DAEMON,
  CMD_DUMP, CMD_FILENAMES, CMD_FILENAMES_RDS, CMD_INTERVALS,
  CMD_MOUNT_POINT_STATS, CMD_QUIT, CMD_RECONFIGURE, CMD_SCAN,
  CMD_STATUS
}
 
enum  command_type {
  CMD_UNKNOWN, CMD_DAEMON, CMD_DUMP, CMD_FILENAMES,
  CMD_FILENAMES_RDS, CMD_INTERVALS, CMD_MOUNT_POINT_STATS, CMD_QUIT,
  CMD_RECONFIGURE, CMD_SCAN, CMD_STATUS, CMD_UNKNOWN,
  CMD_DAEMON, CMD_DUMP, CMD_FILENAMES, CMD_FILENAMES_RDS,
  CMD_INTERVALS, CMD_MOUNT_POINT_STATS, CMD_QUIT, CMD_RECONFIGURE,
  CMD_SCAN, CMD_STATUS, CMD_UNKNOWN, CMD_DAEMON,
  CMD_DUMP, CMD_FILENAMES, CMD_FILENAMES_RDS, CMD_INTERVALS,
  CMD_MOUNT_POINT_STATS, CMD_QUIT, CMD_RECONFIGURE, CMD_SCAN,
  CMD_STATUS
}
 

Public Member Functions

 ~CommandTable ()
 Destructor to release system resources. More...
 
 ~CommandTable ()
 Destructor to release system resources. More...
 
 ~CommandTable ()
 Destructor to release system resources. More...
 

Static Public Member Functions

static command_type Lookup (const std::string &Name)
 Translate from ascii to enumerated type. More...
 
static const char * Lookup (command_type Command)
 
static command_type Lookup (const std::string &Name)
 Translate from ascii to enumerated type. More...
 
static const char * Lookup (command_type Command)
 
static command_type Lookup (const std::string &Name)
 Translate from ascii to enumerated type. More...
 
static const char * Lookup (command_type Command)
 

Private Types

typedef LDASTools::AL::unordered_map< std::string, command_typecommand_table_type
 
typedef LDASTools::AL::unordered_map< std::string, command_typecommand_table_type
 
typedef LDASTools::AL::unordered_map< std::string, command_typecommand_table_type
 

Private Member Functions

 SINGLETON_TS_DECL (CommandTable)
 
command_type lookup (const std::string &Name)
 
const char * lookup (command_type Command)
 
 SINGLETON_TS_DECL (CommandTable)
 
command_type lookup (const std::string &Name)
 
const char * lookup (command_type Command)
 
 SINGLETON_TS_DECL (CommandTable)
 
command_type lookup (const std::string &Name)
 
const char * lookup (command_type Command)
 

Private Attributes

command_table_type command_table
 

Member Typedef Documentation

◆ command_table_type [1/3]

typedef LDASTools::AL::unordered_map< std::string, command_type > diskCache::MetaCommand::CommandTable::command_table_type
private

◆ command_table_type [2/3]

typedef LDASTools::AL::unordered_map< std::string, command_type > diskCache::MetaCommand::CommandTable::command_table_type
private

◆ command_table_type [3/3]

typedef LDASTools::AL::unordered_map< std::string, command_type > diskCache::MetaCommand::CommandTable::command_table_type
private

Member Enumeration Documentation

◆ command_type [1/3]

Enumerator
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 

◆ command_type [2/3]

Enumerator
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 

◆ command_type [3/3]

Enumerator
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 
CMD_UNKNOWN 
CMD_DAEMON 
CMD_DUMP 
CMD_FILENAMES 
CMD_FILENAMES_RDS 
CMD_INTERVALS 
CMD_MOUNT_POINT_STATS 
CMD_QUIT 
CMD_RECONFIGURE 
CMD_SCAN 
CMD_STATUS 

Constructor & Destructor Documentation

◆ ~CommandTable() [1/3]

diskCache::MetaCommand::CommandTable::~CommandTable ( )

Destructor to release system resources.

◆ ~CommandTable() [2/3]

diskCache::MetaCommand::CommandTable::~CommandTable ( )

Destructor to release system resources.

◆ ~CommandTable() [3/3]

diskCache::MetaCommand::CommandTable::~CommandTable ( )

Destructor to release system resources.

Member Function Documentation

◆ Lookup() [1/6]

CommandTable::command_type diskCache::MetaCommand::CommandTable::Lookup ( const std::string &  Name)
inlinestatic

Translate from ascii to enumerated type.

Parameters
[in]NameThe ascii form of the command
Returns
The appropriate value from the command_type enumeration. If Name cannot be mapped, then the value CMD_UNKNOWN is returned.

◆ Lookup() [2/6]

static command_type diskCache::MetaCommand::CommandTable::Lookup ( const std::string &  Name)
static

Translate from ascii to enumerated type.

Parameters
[in]NameThe ascii form of the command
Returns
The appropriate value from the command_type enumeration. If Name cannot be mapped, then the value CMD_UNKNOWN is returned.

◆ Lookup() [3/6]

static command_type diskCache::MetaCommand::CommandTable::Lookup ( const std::string &  Name)
static

Translate from ascii to enumerated type.

Parameters
[in]NameThe ascii form of the command
Returns
The appropriate value from the command_type enumeration. If Name cannot be mapped, then the value CMD_UNKNOWN is returned.

◆ Lookup() [4/6]

static const char* diskCache::MetaCommand::CommandTable::Lookup ( command_type  Command)
static

◆ Lookup() [5/6]

static const char* diskCache::MetaCommand::CommandTable::Lookup ( command_type  Command)
static

◆ Lookup() [6/6]

const char * diskCache::MetaCommand::CommandTable::Lookup ( command_type  Command)
inlinestatic

◆ lookup() [1/6]

CommandTable::command_type diskCache::MetaCommand::CommandTable::lookup ( const std::string &  Name)
inlineprivate

◆ lookup() [2/6]

command_type diskCache::MetaCommand::CommandTable::lookup ( const std::string &  Name)
private

◆ lookup() [3/6]

command_type diskCache::MetaCommand::CommandTable::lookup ( const std::string &  Name)
private

◆ lookup() [4/6]

const char* diskCache::MetaCommand::CommandTable::lookup ( command_type  Command)
private

◆ lookup() [5/6]

const char* diskCache::MetaCommand::CommandTable::lookup ( command_type  Command)
private

◆ lookup() [6/6]

const char * diskCache::MetaCommand::CommandTable::lookup ( command_type  Command)
inlineprivate

◆ SINGLETON_TS_DECL() [1/3]

diskCache::MetaCommand::CommandTable::SINGLETON_TS_DECL ( CommandTable  )
private

◆ SINGLETON_TS_DECL() [2/3]

diskCache::MetaCommand::CommandTable::SINGLETON_TS_DECL ( CommandTable  )
private

◆ SINGLETON_TS_DECL() [3/3]

diskCache::MetaCommand::CommandTable::SINGLETON_TS_DECL ( CommandTable  )
private

Member Data Documentation

◆ command_table

command_table_type diskCache::MetaCommand::CommandTable::command_table
private

The documentation for this class was generated from the following files: