0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[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 IMPLEMENT_STANDARD_RTTIEXT(HeaderSection_Protocol,StepData_Protocol)
23
24 static Standard_CString schemaName = "header_section";
25
26 HeaderSection_Protocol::HeaderSection_Protocol () { }
27
28 Standard_Integer HeaderSection_Protocol::TypeNumber(const 
29 Handle(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
38 Standard_CString HeaderSection_Protocol::SchemaName() const
39         {       return schemaName; }