ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/io/ifstrstream.hpp
(Generate patch)

Comparing branches/development/src/io/ifstrstream.hpp (file contents):
Revision 1627 by gezelter, Tue Sep 13 22:05:04 2011 UTC vs.
Revision 1808 by gezelter, Mon Oct 22 20:42:10 2012 UTC

# Line 36 | Line 36
36   * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).            
37   * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).          
38   * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).          
39 < * [4]  Vardeman & Gezelter, in progress (2009).                        
39 > * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010).
40 > * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43   /**
# Line 100 | Line 101 | class ifstrstream : public std::basic_istream<char, st
101          
102      /**
103       * Explicit constructor
104 <     * @filename String containing the name of the file to be opened
105 <     * @mode Flags describing the requested i/o mode for the file, default value is ios_base::in      
106 <     * @checkFilename Flags indicating checking the file name in parallel
104 >     * @param filename String containing the name of the file to be opened
105 >     * @param mode Flags describing the requested i/o mode for the file, default value is ios_base::in      
106 >     * @param checkFilename Flags indicating checking the file name in parallel
107       */
108      explicit ifstrstream(const char* filename, std::ios_base::openmode mode = std::ios_base::in, bool checkFilename = false);
109  
# Line 115 | Line 116 | class ifstrstream : public std::basic_istream<char, st
116       * Opens a file and associats a buffer with the specified file to perform the i/o operations
117       * (single mode). Master reads a file and brocasts its content to the other slave nodes. After
118       * brocasting, every nodes fall back to stringstream (parallel mode).
119 <     * @filename String containing the name of the file to be opened
120 <     * @mode Flags describing the requested i/o mode for the file
121 <     * @checkFilename Flags indicating checking the file name in parallel
119 >     * @param filename String containing the name of the file to be opened
120 >     * @param mode Flags describing the requested i/o mode for the file
121 >     * @param checkFilename Flags indicating checking the file name in parallel
122       */
123      void open(const char* filename, std::ios_base::openmode mode = std::ios_base::in, bool checkFilename = false);
124  
# Line 148 | Line 149 | class ifstrstream : public std::basic_istream<char, st
149       * Internal function used to open the file
150       * @return true if succesfully opens a file (single mode) or gets the file content (parallel mode)
151       * otherwise return false
152 <     * @filename String containing the name of the file to be opened
153 <     * @mode Flags describing the requested i/o mode for the file
152 >     * @param filename String containing the name of the file to be opened
153 >     * @param mode Flags describing the requested i/o mode for the file
154 >     * @param checkFilename Flags indicating checking the file name in parallel
155       * @todo use try - catch syntax to make the program more readable
156       */
157      bool internalOpen(const char* filename, std::ios_base::openmode mode, bool checkFilename);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines