Biorithm  1.1
 All Classes Functions Variables Typedefs Friends
geewhiz-manager.h
00001 /**************************************************************************
00002  * Copyright (c) 2006-2011 T. M. Murali                                   *
00003  *                                                                        *
00004  * This file is part of Biorithm.                                         *
00005  *                                                                        *
00006  * Biorithm is free software: you can redistribute it and/or modify       *
00007  * it under the terms of the GNU General Public License as published by   *
00008  * the Free Software Foundation, either version 3 of the License, or      *
00009  * (at your option) any later version.                                    *
00010  *                                                                        *
00011  * Biorithm is distributed in the hope that it will be useful,            *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00014  * GNU General Public License for more details.                           *
00015  *                                                                        *
00016  * You should have received a copy of the GNU General Public License      *
00017  * along with Biorithm.  If not, see <http://www.gnu.org/licenses/>.      *
00018  *                                                                        *
00019  **************************************************************************/
00020 
00027 #ifndef _GEEWHIZ_MANAGER_H
00028 #define _GEEWHIZ_MANAGER_H
00029 
00030 #include <string>
00031 
00032 using namespace std;
00033 
00034 #include "geewhiz-opts.h"
00035 
00036 class GeewhizManager
00037 {
00038 private:
00039   gengetopt_args_info _options;
00040   
00041   // --edges-file
00042   string _edgesFile;
00043 
00044   // --edge-types-file
00045   string _edgeTypesFile;
00046 
00047   // --nodes-file
00048   string _nodesFile;
00049 
00050   // --node-types-file
00051   string _nodeTypesFile;
00052 
00053   // --output-file
00054   string _outputFile;
00055 
00056   // --parameters-file
00057   string _parametersFile;
00058   
00059 public:
00060 
00061   void set(int argc, char **argv);
00062 
00063   // --cluster-nodes
00064   bool getClusterNodes() const
00065     {
00066       return(_options.cluster_nodes_given);
00067     }
00068   
00069   // --directed
00070   bool getIsDirected() const
00071     {
00072       return(_options.directed_given);
00073     }
00074   
00075   // --edges-file
00076   string getEdgesFile() const
00077     {
00078       return(_edgesFile);
00079     }
00080   void setEdgesFile(string ef)
00081     {
00082       _edgesFile = ef;
00083     }
00084 
00085   // --edge-types-file
00086   string getEdgeTypesFile() const
00087     {
00088       return(_edgeTypesFile);
00089     }
00090   void setEdgeTypesFile(string etf)
00091     {
00092       _edgeTypesFile = etf;
00093     }
00094 
00095   // --nodes-file
00096   string getNodesFile() const
00097     {
00098       return(_nodesFile);
00099     }
00100   void setNodesFile(string nf)
00101     {
00102       _nodesFile = nf;
00103     }
00104 
00105   // --node-types-file
00106   string getNodeTypesFile() const
00107     {
00108       return(_nodeTypesFile);
00109     }
00110   void setNodeTypesFile(string ntf)
00111     {
00112       _nodeTypesFile = ntf;
00113     }
00114 
00115   // --output-file
00116   string getOutputFile() const
00117     {
00118       return(_outputFile);
00119     }
00120   void setOutputFile(string of)
00121     {
00122       _outputFile = of;
00123     }
00124 
00125   // --parameters-file
00126   string getParametersFile() const
00127     {
00128       return(_parametersFile);
00129     }
00130   void setParametersFile(string pf)
00131     {
00132       _parametersFile = pf;
00133     }
00134 
00135   
00136 };
00137 
00138 
00139 #endif // _GEEWHIZ_MANAGER_H 
 All Classes Functions Variables Typedefs Friends