// Created on: 1993-09-07
// Created by: Christian CAILLET
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.

#ifndef _IGESDimen_SpecificModule_HeaderFile
#define _IGESDimen_SpecificModule_HeaderFile

#include <Standard.hxx>
#include <Standard_Type.hxx>

#include <IGESData_SpecificModule.hxx>
#include <Standard_Integer.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;

class IGESDimen_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESDimen_SpecificModule, IGESData_SpecificModule)

//! Defines Services attached to IGES Entities :
//! Dump & OwnCorrect, for IGESDimen
class IGESDimen_SpecificModule : public IGESData_SpecificModule
{

public:
  //! Creates a SpecificModule from IGESDimen & puts it into SpecificLib
  Standard_EXPORT IGESDimen_SpecificModule();

  //! Specific Dump (own parameters) for IGESDimen
  Standard_EXPORT void OwnDump(const Standard_Integer             CN,
                               const Handle(IGESData_IGESEntity)& ent,
                               const IGESData_IGESDumper&         dumper,
                               Standard_OStream&                  S,
                               const Standard_Integer             own) const Standard_OVERRIDE;

  //! Performs non-ambiguous Corrections on Entities which support
  //! them (BasicDimension,CenterLine,DimensionDisplayData,
  //! DimensionTolerance,DimensionUnits,DimensionedGeometry,
  //! NewDimensionedGeometry,Section,WitnessLine)
  Standard_EXPORT virtual Standard_Boolean OwnCorrect(const Standard_Integer             CN,
                                                      const Handle(IGESData_IGESEntity)& ent) const
    Standard_OVERRIDE;

  DEFINE_STANDARD_RTTIEXT(IGESDimen_SpecificModule, IGESData_SpecificModule)

protected:
private:
};

#endif // _IGESDimen_SpecificModule_HeaderFile
