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