LAMPCAE/src/GeometryDataExchange/STEPdataExchange.h

92 lines
2.3 KiB
C
Raw Normal View History

2023-05-08 06:32:41 +00:00
/**
* @file STEPdataExchange.h
* @brief step
* @author LAMPCAE(LAMPCAE@diso.cn)
2023-05-08 06:32:41 +00:00
* @version 2.5.0
* @date 2022-03-18 15:42
* @copyright Copyright (c) Since 2020 All rights reserved.
*
* ============================================================================
* Program: LAMPCAE
2023-05-08 06:32:41 +00:00
*
* Copyright (c) Since 2020 All rights reserved.
* See License or http://www.LAMPCAE.com/ for details.
2023-05-08 06:32:41 +00:00
*
* BSD 3-Clause License
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED.
* ==================================================================================
*/
#ifndef _STEPDATAEXCHANGE_H_
#define _STEPDATAEXCHANGE_H_
#include "GeometryThreadBase.h"
namespace Geometry
{
/**
* @brief step
* @since 2.5.0
*/
class GEOMETRYDATAEXCHANGEAPI STEPdataExchange : public GeometryThreadBase
{
public:
/**
* @brief
* @param _fileName
* @param operation
* @param mw
* @param res
* @param KernalId
* @since 2.5.0
*/
STEPdataExchange(const QString& _fileName, GeometryOperation operation, GUI::MainWindow *mw, QList<GeometrySet*>& res, int KernalId = -1);
/**
* @brief
* @since 2.5.0
*/
~STEPdataExchange();
void run() override;
private:
/**
* @brief step
* @return bool
* @since 2.5.0
*/
bool readStep();
/**
* @brief step
* @return bool
* @since 2.5.0
*/
bool writeStep();
void deriveGeometryTaskFinished();
private:
/**
* @brief
* @since 2.5.0
*/
const QString _fileName;
/**
* @brief
* @since 2.5.0
*/
GeometryOperation _operation;
/**
* @brief
* @since 2.5.0
*/
bool _isRead{ false };
/**
* @brief
* @since 2.5.0
*/
bool _isWrite{ false };
};
}
#endif