0031172: Unexpected result of BRepTools::OuterWire()
[occt.git] / src / HeaderSection / HeaderSection_Protocol.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14
7fd59977 15#include <HeaderSection_FileDescription.hxx>
42cf5bc1 16#include <HeaderSection_FileName.hxx>
7fd59977 17#include <HeaderSection_FileSchema.hxx>
42cf5bc1 18#include <HeaderSection_Protocol.hxx>
19#include <Standard_Type.hxx>
7fd59977 20#include <StepData_UndefinedEntity.hxx>
21
92efcf78 22IMPLEMENT_STANDARD_RTTIEXT(HeaderSection_Protocol,StepData_Protocol)
23
7fd59977 24static Standard_CString schemaName = "header_section";
25
26HeaderSection_Protocol::HeaderSection_Protocol () { }
27
28Standard_Integer HeaderSection_Protocol::TypeNumber(const
29Handle(Standard_Type)& atype) const
30{
31 if (atype == STANDARD_TYPE(HeaderSection_FileName)) return 1;
32 else if (atype == STANDARD_TYPE(HeaderSection_FileDescription)) return 2;
33 else if (atype == STANDARD_TYPE(HeaderSection_FileSchema)) return 3;
34 else if (atype == STANDARD_TYPE(StepData_UndefinedEntity)) return 4;
35 else return 0;
36}
37
38Standard_CString HeaderSection_Protocol::SchemaName() const
39 { return schemaName; }