autotier
Automatic Tiering Fuse Filesystem
Public Member Functions | Public Attributes | List of all members
AdHoc Class Reference

Representation of an ad hoc command with the command index and arguments. More...

#include <tools.hpp>

Public Member Functions

 AdHoc (int cmd, const std::vector< std::string > &args)
 Construct a new Ad Hoc object from command_enum and list of args. More...
 
 AdHoc (const std::vector< std::string > &work_req)
 Construct a new Ad Hoc object from list of strings. More...
 
 ~AdHoc (void)=default
 Destroy the Ad Hoc object. More...
 

Public Attributes

int cmd_
 Index of command in comman_enum.
 
std::vector< std::string > args_
 Arguments passed to command.
 

Detailed Description

Representation of an ad hoc command with the command index and arguments.

Constructor & Destructor Documentation

◆ AdHoc() [1/2]

AdHoc::AdHoc ( int  cmd,
const std::vector< std::string > &  args 
)
inline

Construct a new Ad Hoc object from command_enum and list of args.

Parameters
cmdcommand_enum from get_command_index()
argslist of args to command

◆ AdHoc() [2/2]

AdHoc::AdHoc ( const std::vector< std::string > &  work_req)
inline

Construct a new Ad Hoc object from list of strings.

Parameters
work_reqcommand (work_req[0]) and args (work_req[1:])

◆ ~AdHoc()

AdHoc::~AdHoc ( void  )
default

Destroy the Ad Hoc object.


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