Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
StepData_FileProtocol Class Reference

A FileProtocol is defined as the addition of several already
existing Protocols. It corresponds to the definition of a
SchemaName with several Names, each one being attached to a
specific Protocol. Thus, a File defined with a compound Schema
is processed as any other one, once built the equivalent
compound Protocol, a FileProtocol

#include <StepData_FileProtocol.hxx>

Inheritance diagram for StepData_FileProtocol:
Inheritance graph
[legend]

Public Member Functions

 StepData_FileProtocol ()
 Creates an empty FileProtocol

void Add (const Handle< StepData_Protocol > &protocol)
 Adds a Protocol to the definition list of the FileProtocol
But ensures that each class of Protocol is present only once
in this list

virtual Standard_Integer NbResources () const
 Gives the count of Protocols used as Resource (can be zero)
i.e. the count of Protocol recorded by calling the method Add

virtual Handle_Interface_Protocol Resource (const Standard_Integer num) const
 Returns a Resource, given a rank. Here, rank of calling Add

virtual Standard_Integer TypeNumber (const Handle< Standard_Type > &atype) const
 Returns a Case Number, specific of each recognized Type
Here, NO Type at all is recognized properly : all Types are
recognized by the resources

virtual Standard_Boolean GlobalCheck (const Interface_Graph &G, Handle< Interface_Check > &ach) const
 Calls GlobalCheck for each of its recorded ressources

virtual Standard_CString SchemaName () const
 Returns the Schema Name attached to each class of Protocol
To be redefined by each sub-class
Here, SchemaName returns "" (empty String)
was C++ : return const


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from Interface_Protocol.

Reimplemented from StepData_Protocol.

virtual Handle_Interface_Protocol StepData_FileProtocol::Resource ( const Standard_Integer  num) const [virtual]

Reimplemented from StepData_Protocol.

Reimplemented from StepData_Protocol.

Reimplemented in StepData_DescrProtocol.

Reimplemented from StepData_Protocol.


The documentation for this class was generated from the following file: