Panda3D
Functions
interrogate_datafile.h File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "dtoolbase.h"
#include <vector>
#include "interrogate_datafile.I"

Go to the source code of this file.

Functions

void idf_input_string (std::istream &in, std::string &str)
 Reads the given string from the input file, as previously written by output_string(). More...
 
void idf_input_string (std::istream &in, const char *&str)
 Reads the given string from the input file, as previously written by output_string(). More...
 
template<class Element >
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(). More...
 
void idf_output_string (std::ostream &out, const std::string &str, char whitespace=' ')
 Writes the indicated string to the output file. More...
 
void idf_output_string (std::ostream &out, const char *str, char whitespace=' ')
 Writes the indicated string to the output file. More...
 
template<class Element >
void idf_output_vector (std::ostream &out, const std::vector< Element > &vec)
 Writes the indicated vector to the output file. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2000-08-09

Definition in file interrogate_datafile.h.

Function Documentation

◆ idf_input_string() [1/2]

void idf_input_string ( std::istream &  in,
std::string &  str 
)

◆ idf_input_string() [2/2]

void idf_input_string ( std::istream &  in,
const char *&  str 
)

Reads the given string from the input file, as previously written by output_string().

Definition at line 75 of file interrogate_datafile.cxx.

◆ idf_input_vector()

template<class Element >
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().

Each component is read using its normal istream input operator.

Definition at line 36 of file interrogate_datafile.I.

Referenced by InterrogateFunctionWrapper::input(), and InterrogateFunction::input().

◆ idf_output_string() [1/2]

void idf_output_string ( ostream &  out,
const string &  str,
char  whitespace 
)

Writes the indicated string to the output file.

Uses the given whitespace character to separate the string's length and its contents.

Definition at line 26 of file interrogate_datafile.cxx.

Referenced by InterrogateManifest::output(), InterrogateMakeSeq::output(), InterrogateComponent::output(), InterrogateFunctionWrapper::output(), InterrogateFunction::output(), InterrogateElement::output(), InterrogateType::output(), and InterrogateDatabase::write().

◆ idf_output_string() [2/2]

void idf_output_string ( ostream &  out,
const char *  str,
char  whitespace 
)

Writes the indicated string to the output file.

Uses the given whitespace character to separate the string's length and its contents.

Definition at line 59 of file interrogate_datafile.cxx.

◆ idf_output_vector()

template<class Element >
void idf_output_vector ( std::ostream &  out,
const std::vector< Element > &  vec 
)

Writes the indicated vector to the output file.

Each component is written using its normal ostream output operator.

Definition at line 20 of file interrogate_datafile.I.

Referenced by InterrogateFunctionWrapper::output(), InterrogateFunction::output(), and InterrogateType::output().