Panda3D
interrogate_datafile.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file interrogate_datafile.h
10  * @author drose
11  * @date 2000-08-09
12  */
13 
14 #ifndef INTERROGATE_DATAFILE_H
15 #define INTERROGATE_DATAFILE_H
16 
17 // This file defines some convenience functions for reading and writing the
18 // interrogate database files.
19 
20 #include "dtoolbase.h"
21 #include <vector>
22 
23 void idf_output_string(std::ostream &out, const std::string &str, char whitespace = ' ');
24 void idf_input_string(std::istream &in, std::string &str);
25 
26 void idf_output_string(std::ostream &out, const char *str, char whitespace = ' ');
27 void idf_input_string(std::istream &in, const char *&str);
28 
29 template<class Element>
30 void idf_output_vector(std::ostream &out, const std::vector<Element> &vec);
31 
32 template<class Element>
33 void idf_input_vector(std::istream &in, std::vector<Element> &vec);
34 
35 #include "interrogate_datafile.I"
36 
37 #endif
void idf_input_vector(std::istream &in, std::vector< Element > &vec)
Reads the given vector from the input file, as previously written by output_string().
void idf_output_string(std::ostream &out, const std::string &str, char whitespace=' ')
Writes the indicated string to the output file.
void idf_input_string(std::istream &in, std::string &str)
Reads the given string from the input file, as previously written by output_string().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void idf_output_vector(std::ostream &out, const std::vector< Element > &vec)
Writes the indicated vector to the output file.