Base class for writer classes. More...
Public Member Functions | |
~Base_Writer () | |
Destructor. | |
bool | Transfer (const ModelData_Model &theModel) |
Converts source model into memory representation of the target file. | |
bool | Transfer (const ModelData_BIMModel &theModel) |
Converts source model into memory representation of the target file. | |
bool | Transfer (const TopoDS_Shape &theShape) |
Converts source shape into memory representation of the target file. | |
bool | WriteFile (const Base_UTF16String &theFileName) |
Writes contents to a target file. | |
bool | WriteFile (std::ostream &theStream) |
Writes contents to a target stream. | |
Base_ProgressStatus & | ProgressStatus () const |
Returns a progress status. | |
Base_WriterStatistics | Statistics () const |
Returns an object containing information about export process. | |
internal::Base_Writer_Private * | Impl () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Protected Member Functions | |
Base_Writer (internal::Base_Writer_Private *theImpl) | |
Constructor. | |
Base class for writer classes.
Base_Writer subclasses (e.g. IGES_Writer) must be used following the same pattern:
|
inline |
Returns the pointer to the implementation object.
bool cadex::Base_Writer::Transfer | ( | const ModelData_BIMModel & | theModel | ) |
Converts source model into memory representation of the target file.
Returns true if conversion has been successful and false otherwise.
bool cadex::Base_Writer::Transfer | ( | const ModelData_Model & | theModel | ) |
Converts source model into memory representation of the target file.
Returns true if conversion has been successful and false otherwise.
bool cadex::Base_Writer::Transfer | ( | const TopoDS_Shape & | theShape | ) |
Converts source shape into memory representation of the target file.
Returns true if conversion has been successful and false otherwise.
bool cadex::Base_Writer::WriteFile | ( | const Base_UTF16String & | theFileName | ) |
Writes contents to a target file.
Returns True if the conversion has been successful and False otherwise.
BaseError_EvaluationLimit |
Inicialize number of conversions for SDK (for GUI and CLI number of conversions inicialized in ExchangerLib)
bool cadex::Base_Writer::WriteFile | ( | std::ostream & | theStream | ) |
Writes contents to a target stream.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. If theStream must be opened and use binary format (the ios::binary flag).
Not all subclasses support this syntax (e.g. STEP_Writer or IGES_Writer do not). In this case the method returns False and asserts in debug mode.
Returns True if the conversion has been successful and False otherwise.
BaseError_EvaluationLimit |
Inicialize number of conversions for SDK (for GUI and CLI number of conversions inicialized in ExchangerLib)