DCPackerInterface

Inheritance:

Methods of DCPackerInterface:

asClassParameter
virtual DCClassParameter *DCPackerInterface::as_class_parameter(void);

Description:

asField
virtual DCField *DCPackerInterface::as_field(void);

Description:

asSwitchParameter
virtual DCSwitchParameter *DCPackerInterface::as_switch_parameter(void);

Description:

checkMatch
bool DCPackerInterface::check_match(DCPackerInterface const *other) const;

Description: Returns true if the other interface is bitwise the same as this one--that is, a uint32 only matches a uint32, etc. Names of components, and range limits, are not compared.
Description: Returns true if this interface is bitwise the same as the interface described with the indicated formatted string, e.g. "(uint8, uint8, int16)", or false otherwise.
If DCFile is not NULL, it specifies the DCFile that was previously loaded, from which some predefined structs and typedefs may be referenced in the description string.

findSeekIndex
int DCPackerInterface::find_seek_index(string const &name) const;

Description: Returns the index number to be passed to a future call to DCPacker::seek() to seek directly to the named field without having to look up the field name in a table later, or -1 if the named field cannot be found.
If the named field is nested within a switch or some similar dynamic structure that reveals different fields based on the contents of the data, this mechanism cannot be used to pre-fetch the field index number--you must seek for the field by name.

getName
string const &DCPackerInterface::get_name(void) const;

Filename: dcPackerInterface.I Created by: drose (18Jun04)
PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net .
Description: Returns the name of this field, or empty string if the field is unnamed.