Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
ByteBufferArgsProcessor Class Reference

An ArgsProcessor that adds all of its values to a given ByteBuffer. More...

#include <byte_buffer_args_processor.hpp>

Inheritance diagram for ByteBufferArgsProcessor:
[legend]
Collaboration diagram for ByteBufferArgsProcessor:
[legend]

Public Member Functions

 ByteBufferArgsProcessor ()
 Construct a new ByteBufferArgsProcessor. More...
 
virtual ~ByteBufferArgsProcessor ()
 The ByteBufferArgsProcessor destructor. More...
 
virtual bool AddArg (const char *arg_s, const bool hyphen_flag)
 Add an argument to the underlying ByteBuffer. More...
 
const char * GetArgsAsString ()
 Get the complete set of arguments as a string. More...
 
- Public Member Functions inherited from ArgsProcessor
 ArgsProcessor ()
 Construct an ArgsProcessor. More...
 
virtual ~ArgsProcessor ()
 The ArgsProcessor destructor. More...
 
bool GetAndAddBlastArgs (const ParameterSet *param_set_p, const char *param_name_s, bool required_flag, ArgsProcessor *ap_p)
 Get the named Parameter from a ParameterSet and add it to an ArgsProcessor. More...
 
bool AddBlastArgs (const Parameter *param_p, ArgsProcessor *ap_p)
 Add an argument derived from the current value of a Parameter to an ArgsProcessor. More...
 
bool AddArgsPair (const char *key_s, const char *value_s, ArgsProcessor *ap_p)
 Add a pair of arguments to the command line arguments stored in a ByteBuffer. More...
 
bool AddArgsPairFromIntegerParameter (const ParameterSet *params_p, const char *const param_name_s, const char *key_s, ArgsProcessor *ap_p, const bool unsigned_flag, const bool required_flag)
 Get the value of an integer-based Parameter and add it as key-value pair to the command line arguments accessed by an ArgsProcessor. More...
 
bool AddArgsPairFromStringParameter (const ParameterSet *params_p, const char *const param_name_s, const char *key_s, ArgsProcessor *ap_p, const bool required_flag)
 Get the value of an string-based Parameter and add it as key-value pair to the command line arguments accessed by an ArgsProcessor. More...
 

Detailed Description

An ArgsProcessor that adds all of its values to a given ByteBuffer.

Constructor & Destructor Documentation

◆ ByteBufferArgsProcessor()

◆ ~ByteBufferArgsProcessor()

virtual ~ByteBufferArgsProcessor ( )
virtual

The ByteBufferArgsProcessor destructor.

Member Function Documentation

◆ AddArg()

virtual bool AddArg ( const char *  arg_s,
const bool  hyphen_flag 
)
virtual

Add an argument to the underlying ByteBuffer.

Parameters
arg_sThe value to add.
hyphen_flagIf this is true then the value specified by arg_s will be prefixed by a '-' when adding to this ArgsProcessor.
Returns
true if the argument was added successfully, false otherwise.

Implements ArgsProcessor.

◆ GetArgsAsString()

const char* GetArgsAsString ( )

Get the complete set of arguments as a string.

Returns
The arguments as a string

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