Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Directory.H
Go to the documentation of this file.
1 /* *******************************************************************
2  * Rocstar Simulation Suite *
3  * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4  * *
5  * Illinois Rocstar LLC *
6  * Champaign, IL *
7  * www.illinoisrocstar.com *
8  * sales@illinoisrocstar.com *
9  * *
10  * License: See LICENSE file in top level of distribution package or *
11  * http://opensource.org/licenses/NCSA *
12  *********************************************************************/
13 /* *******************************************************************
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17  * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21  * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22  *********************************************************************/
23 #ifndef _DIRECTORY_H_
24 #define _DIRECTORY_H_
25 
26 class Directory : public std::vector<std::string>
27 {
28 protected:
29  std::string _path;
30  bool _good;
31  DIR *_dir;
32 public:
33  Directory(const std::string &s = "");
34  ~Directory();
35  int open(const std::string &s = "");
36  void close();
37  operator void* ();
38  bool operator ! ();
39 };
40 
41 #endif
42 
43 
44 
45 
46 
47 
DIR * _dir
Definition: Directory.H:31
double s
Definition: blastest.C:80
bool operator!()
Definition: Directory.C:56
~Directory()
Definition: Directory.C:45
int open(const std::string &s="")
Definition: Directory.C:69
void close()
Definition: Directory.C:62
Directory(const std::string &s="")
Definition: Directory.C:31
std::string _path
Definition: Directory.H:29
bool _good
Definition: Directory.H:30