Panda3D
Loading...
Searching...
No Matches
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
23void idf_output_string(std::ostream &out, const std::string &str, char whitespace = ' ');
24void idf_input_string(std::istream &in, std::string &str);
25
26void idf_output_string(std::ostream &out, const char *str, char whitespace = ' ');
27void idf_input_string(std::istream &in, const char *&str);
28
29template<class Element>
30void idf_output_vector(std::ostream &out, const std::vector<Element> &vec);
31
32template<class Element>
33void idf_input_vector(std::istream &in, std::vector<Element> &vec);
34
36
37#endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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().
void idf_output_vector(std::ostream &out, const std::vector< Element > &vec)
Writes the indicated vector to the output file.
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().