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.
blast_util.h File Reference
#include "args_processor.hpp"
#include "blast_service_api.h"
#include "byte_buffer.h"
#include "parameter_set.h"
Include dependency graph for blast_util.h:

Go to the source code of this file.

Functions

bool AddArg (const char *arg_s, ArgsProcessor *ap_p, bool hyphen_flag)
 Add the argument to the command line arguments stored in a ByteBuffer. More...
 
bool WriteCommandLineToFile (const char *command_line_s, const char *filename_s)
 
char * GetBlastJobFilename (const char *const prefix_s, const char *job_id_s, const char *const suffix_s)
 
char * GetBlastJobFilenameByUuid (const char *const prefix_s, const uuid_t id, const char *const suffix_s)
 

Function Documentation

◆ AddArg()

bool AddArg ( const char *  arg_s,
ArgsProcessor ap_p,
bool  hyphen_flag 
)

Add the argument to the command line arguments stored in a ByteBuffer.

Parameters
arg_sThe argument to add.
ap_pThe ArgsProcessor to use to store the argument.
hyphen_flagIf this is true then a "-" will be prepended to the argument that is being added to the ByteBuffer.
Returns
true if the argument was added successfully, false otherwise.

◆ WriteCommandLineToFile()

bool WriteCommandLineToFile ( const char *  command_line_s,
const char *  filename_s 
)

◆ GetBlastJobFilename()

char* GetBlastJobFilename ( const char *const  prefix_s,
const char *  job_id_s,
const char *const  suffix_s 
)

◆ GetBlastJobFilenameByUuid()

char* GetBlastJobFilenameByUuid ( const char *const  prefix_s,
const uuid_t  id,
const char *const  suffix_s 
)