SST/macro
fileio.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SPROCKIT_FILEIO_H_INCLUDED
13 #define SPROCKIT_FILEIO_H_INCLUDED
14 
15 #include <iostream>
16 #include <fstream>
17 #include <list>
18 
19 namespace sprockit {
20 
22 {
23 
24  private:
25  static std::list<std::string> file_paths_;
26 
27  public:
28  static void open_file(std::ifstream& stream, const std::string& filename);
29 
30  static void add_path(const std::string& path);
31 
32  static void not_found(const std::string& filename);
33 };
34 
35 }
36 
37 #endif
38 
39 
static void open_file(std::ifstream &stream, const std::string &filename)
static void add_path(const std::string &path)
static std::list< std::string > file_paths_
Definition: fileio.h:25
static void not_found(const std::string &filename)