Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/indent.h File Reference

#include <pandabase.h>
#include "indent.I"

Go to the source code of this file.

Functions

EXPCL_PANDAEXPRESS ostream & indent (ostream &out, int indent_level)
 A handy function for doing text formatting.

template<class InputIterator> void write_long_list (ostream &out, int indent_level, InputIterator ifirst, InputIterator ilast, string first_prefix="", string later_prefix="", int max_col=72)
 Writes a list of things to the indicated output stream, with a space separating each item.


Detailed Description

Definition in file indent.h.


Function Documentation

EXPCL_PANDAEXPRESS ostream& indent ostream &  out,
int  indent_level
 

A handy function for doing text formatting.

This function simply outputs the indicated number of spaces to the given output stream, returning the stream itself. Useful for indenting a series of lines of text by a given amount.

Definition at line 32 of file indent.cxx.

Referenced by GeomNode::calc_tight_bounds(), EggPoint::cleanup(), FactoryBase::clear_preferred(), ClientAnalogDevice::ensure_control_index(), Geom::fillin(), NurbsCurveInterface::format_egg(), HermiteCurveCV::format_egg(), HermiteCurve::get_cv_name(), HermiteCurve::get_cv_out(), HermiteCurve::get_cv_tstart(), TextureCollection::get_num_textures(), CollisionSolid::get_viz(), EggNurbsSurface::is_closed_u(), NodePathCollection::is_empty(), RenderAttrib::issue(), EggSwitchConditionDistance::make_copy(), MovingPartBase::MovingPartBase(), EggExternalReference::operator=(), MouseWatcherRegion::output(), LOD::output(), DocumentSpec::output(), ClientButtonDevice::output_buttons(), PrintNodes< TW >::PrintNodes(), Geom::recompute_bound(), RenderState::remove_attrib(), RenderEffect::safe_to_combine(), AnimChannelScalarTable::set_table(), HermiteCurveCV::set_type(), TextNode::wordwrap_to(), VrpnClient::write(), SceneGraphAnalyzer::write(), AccumulatedAttribs::write(), TypeRegistry::write(), ClientAnalogDevice::write(), MovingPartBase::write(), NurbsCurveInterface::write_cv(), NodePathCollection::wrt_reparent_to(), EggAttributes::~EggAttributes(), and VrpnClient::~VrpnClient().

template<class InputIterator>
void write_long_list ostream &  out,
int  indent_level,
InputIterator  first,
InputIterator  last,
string  first_prefix,
string  later_prefix,
int  max_col
 

Writes a list of things to the indicated output stream, with a space separating each item.

One or more lines will be written, and the lines will automatically be broken such that no line exceeds max_col columns if possible.

Definition at line 39 of file indent.I.

Referenced by EggNurbsSurface::is_closed_u(), and RIBGraphicsStateGuardian::write_light_color().


Generated on Fri May 2 00:45:32 2003 for Panda by doxygen1.3