Panda3D
|
00001 // Filename: interrogate_datafile.h 00002 // Created by: drose (09Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef INTERROGATE_DATAFILE_H 00016 #define INTERROGATE_DATAFILE_H 00017 00018 // This file defines some convenience functions for reading and 00019 // writing the interrogate database files. 00020 00021 #include "dtoolbase.h" 00022 #include <vector> 00023 00024 void idf_output_string(ostream &out, const string &str, char whitespace = ' '); 00025 void idf_input_string(istream &in, string &str); 00026 00027 void idf_output_string(ostream &out, const char *str, char whitespace = ' '); 00028 void idf_input_string(istream &in, const char *&str); 00029 00030 template<class Element> 00031 void idf_output_vector(ostream &out, const vector<Element> &vec); 00032 00033 template<class Element> 00034 void idf_input_vector(istream &in, vector<Element> &vec); 00035 00036 #include "interrogate_datafile.I" 00037 00038 #endif