open_toontown_panda3d/dtool/src/interrogatedb/interrogate_datafile.h

43 lines
1.3 KiB
C++

// Filename: interrogate_datafile.h
// Created by: drose (09Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#ifndef INTERROGATE_DATAFILE_H
#define INTERROGATE_DATAFILE_H
// This file defines some convenience functions for reading and
// writing the interrogate database files.
#include <dtoolbase.h>
#include <vector>
void idf_output_string(ostream &out, const string &str, char whitespace = ' ');
void idf_input_string(istream &in, string &str);
void idf_output_string(ostream &out, const char *str, char whitespace = ' ');
void idf_input_string(istream &in, const char *&str);
template<class Element>
void idf_output_vector(ostream &out, const vector<Element> &vec);
template<class Element>
void idf_input_vector(istream &in, vector<Element> &vec);
#include "interrogate_datafile.I"
#endif