0026912: CLang 3.6.2 compiler warning [-Winconsistent-missing-override]
[occt.git] / src / HeaderSection / HeaderSection_Protocol.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
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
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.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <HeaderSection_FileDescription.hxx>
16 #include <HeaderSection_FileName.hxx>
17 #include <HeaderSection_FileSchema.hxx>
18 #include <HeaderSection_Protocol.hxx>
19 #include <Standard_Type.hxx>
20 #include <StepData_UndefinedEntity.hxx>
21
22 static Standard_CString schemaName = "header_section";
23
24 HeaderSection_Protocol::HeaderSection_Protocol () { }
25
26 Standard_Integer HeaderSection_Protocol::TypeNumber(const 
27 Handle(Standard_Type)& atype) const
28 {
29         if      (atype == STANDARD_TYPE(HeaderSection_FileName)) return 1;
30         else if (atype == STANDARD_TYPE(HeaderSection_FileDescription)) return 2;
31         else if (atype == STANDARD_TYPE(HeaderSection_FileSchema)) return 3;
32         else if (atype == STANDARD_TYPE(StepData_UndefinedEntity)) return 4;
33         else    return 0;
34 }
35
36 Standard_CString HeaderSection_Protocol::SchemaName() const
37         {       return schemaName; }