1 // File: StepElement_VolumeElementPurposeMember.cxx
2 // Created: Tue Dec 10 18:13:05 2002
3 // Author: data exchange team
4 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0
5 // Copyright: Open CASCADE 2002
7 #include <StepElement_VolumeElementPurposeMember.ixx>
8 #include <TCollection_HAsciiString.hxx>
10 static Standard_CString EVEP = "ENUMERATED_VOLUME_ELEMENT_PURPOSE";
11 static Standard_CString ADEP = "APPLICATION_DEFINED_ELEMENT_PURPOSE";
14 //=======================================================================
15 //function : StepElement_VolumeElementPurposeMember
17 //=======================================================================
19 StepElement_VolumeElementPurposeMember::StepElement_VolumeElementPurposeMember () : mycase(0)
23 //=======================================================================
26 //=======================================================================
28 Standard_Boolean StepElement_VolumeElementPurposeMember::HasName() const
33 //=======================================================================
36 //=======================================================================
38 Standard_CString StepElement_VolumeElementPurposeMember::Name() const
48 //=======================================================================
49 //function : CompareNames
51 //=======================================================================
53 static Standard_Integer CompareNames(const Standard_CString name,Standard_Integer &numen)
55 Standard_Integer thecase =0;
56 if (!name || name[0] == '\0') thecase = 0;
57 else if(!strcmp (name,EVEP)) {
60 else if(!strcmp (name,ADEP)) {
66 //=======================================================================
69 //=======================================================================
71 Standard_Boolean StepElement_VolumeElementPurposeMember::SetName(const Standard_CString name)
73 Standard_Integer numit =0;
74 mycase = CompareNames(name,numit);
75 if(numit) SetInteger(numit);
79 //=======================================================================
82 //=======================================================================
84 Standard_Boolean StepElement_VolumeElementPurposeMember::Matches(const Standard_CString name) const
86 Standard_Integer numit =0;
87 Standard_Integer thecase = CompareNames(name,numit);
88 return (mycase==thecase);