4.1 Overview
The P21FileInfo structure is used by the p21_get_file_info function to fill the statistical information obtained from a STEP Part 21 file.
4.2 P21FileInfo Data Members
STR name;
This member is the name of the file. This member should be set before calling the p21_get_file_info function.
unsigned long num_entities;
This member represents the total number of entities in the file. It is being set by the p21_get_file_info function.
unsigned long num_simple;
This member is a number of simple type entities. (Set by p21_get_file_info .)
unsigned long num_complex;
This member is a number of complex ( AND/OR ) type entities. (Set by p21_get_file_info .)
unsigned long num_types;
This member is a total number of entity types found in the file. (Set by p21_get_file_info .)
CArrayOfTypeCount histogram;
This member represents a histogram of types. It is an array of TypeCount structures. A TypeCount structure has two members:
int m_nCount; // Number of type instances
STR m_szType; // Type name
4.3 P21FileInfo Constructor
P21FileInfo();
The constructor creates an object with all counts set to zero.
4.4 P21FileInfo Destructor
~P21FileInfo();
The destructor removes all entries from the histogram member and then destroys the object itself.