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.
strings_args_processor.hpp
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2016 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 
21 /*
22  * strings_args_processor.hpp
23  *
24  * Created on: 8 Mar 2017
25  * Author: billy
26  */
27 
28 #ifndef SERVER_SRC_SERVICES_BLAST_INCLUDE_STRINGS_ARGS_PROCESSOR_HPP_
29 #define SERVER_SRC_SERVICES_BLAST_INCLUDE_STRINGS_ARGS_PROCESSOR_HPP_
30 
31 #include "args_processor.hpp"
32 
39 {
40 public:
45 
49  virtual ~StringsArgsProcessor ();
50 
51 
62  virtual bool AddArg (const char *arg_s, const bool hyphen_flag);
63 
70  char **GetArgsAsStrings ();
71 
72 private:
73  LinkedList *sap_args_p;
74 };
75 
76 
77 
78 
79 
80 #endif /* SERVER_SRC_SERVICES_BLAST_INCLUDE_STRINGS_ARGS_PROCESSOR_HPP_ */
ArgsProcessor::AddArg
virtual bool AddArg(const char *arg_s, const bool hyphen_flag)=0
Add an argument to the underlying tool.
args_processor.hpp
BLAST_SERVICE_LOCAL
#define BLAST_SERVICE_LOCAL
Definition: blast_service_api.h:48
LinkedList
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
StringsArgsProcessor
An ArgsProcessor that adds all of its values to an array of strings.
Definition: strings_args_processor.hpp:38
ArgsProcessor
An ArgsProcessor is a class to abstract out how a particular BlastTool stores a value when an argumen...
Definition: args_processor.hpp:46