Workspace 6.21.5
Public Member Functions | List of all members
NastranWriter Class Reference

Writes models in Nastran format.

#include <Mesh/FileIO/Writers/nastranwriter.h>

Inheritance diagram for NastranWriter:
[legend]

Public Member Functions

 NastranWriter (const std::string &fName="")
 
std::string GetFormatExtension () const override
 
std::string GetFormatName () const override
 
bool Write (MeshModel &model) override
 
- Public Member Functions inherited from MeshWriter
 MeshWriter (const std::string &fName)
 
 MeshWriter (std::ostream &os)
 
virtual bool Write (MeshModel &model)=0
 
- Public Member Functions inherited from BaseWriter
 BaseWriter (const std::string &fName)
 
 BaseWriter (std::ostream &os)
 
 ~BaseWriter () override=default
 
void Close ()
 
void Flush ()
 Flush the file's contents. Not usually called directly by the user.
 
std::string GetBaseName () const
 
std::string GetBaseNameSuffix () const
 
std::string GetFileName () const
 
virtual std::string GetFormatExtension () const =0
 
virtual std::string GetFormatName () const =0
 
double GetScaleFactor () const
 
bool IsReady () const
 
std::string Open ()
 
void SetBaseName (const std::string &base)
 
void SetBaseNameSuffix (const std::string &suffix)
 
void SetBaseNameSuffix (double caseNum, const std::string &caseLabel="_")
 
void SetBaseNameSuffix (int caseNum, const std::string &caseLabel="_")
 
template<typename T >
void SetBaseNameSuffix (T caseNum, const std::string &caseLabel="_")
 
void SetFileName (const std::string &fileName)
 
virtual void SetProgress (int progress)
 
void SetScaleFactor (double scale)
 
void SetUseCompressionOff ()
 Do not use on-the-fly compression when writing to file.
 
void SetUseCompressionOn ()
 Use on-the-fly compression when writing to file.
 
bool UsingCompression () const
 
- Public Member Functions inherited from Logger
 Logger ()
 The default constructor logs to standard output with a plain text log mode.
 
 Logger (const Logger &logger)
 
virtual ~Logger ()
 We own the log mode, so delete it.
 
std::string ErrorOff () const
 
std::string ErrorOn () const
 
std::ostream & GetLog () const
 
const LogModeGetLogMode () const
 
void SetLog (std::ostream &log)
 
void SetLogMode (const LogMode &logMode)
 
void SetLogModeHTML ()
 
void SetLogModePlainText ()
 Set log mode to plain text output.
 
template<Styles s>
void StyleOff () const
 
template<Styles s>
void StyleOn () const
 
std::string WarningOff () const
 
std::string WarningOn () const
 
- Public Member Functions inherited from Observable
virtual ~Observable ()
 
void attachObserver (Observer &observer)
 
void destroy ()
 
void detachObserver (Observer &observer)
 
void notifyEvent (const ObservableEvent &event)
 

Additional Inherited Members

- Public Types inherited from Logger
enum  Styles { Warning , Error , Preformat }
 
- Protected Member Functions inherited from Logger
virtual void LogChanged ()
 
virtual void LogModeChanged ()
 
- Protected Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
- Static Protected Member Functions inherited from MeshWriter
static std::string FieldDouble (double val)
 
static std::string FieldInt (long val)
 
static std::string FieldString (const std::string &val)
 
- Protected Attributes inherited from BaseWriter
std::string baseName_
 
std::string baseNameSuffix_
 
oautogzstream outFile_
 
int progress_ {}
 
double scaleFactor_
 
bool useCompression_
 

Constructor & Destructor Documentation

◆ NastranWriter()

NastranWriter ( const std::string &  fName = "")
inline
Parameters
fNameDefines the base file name for the writer.

Member Function Documentation

◆ GetFormatExtension()

std::string GetFormatExtension ( ) const
inlineoverridevirtual
Returns
The default file name extension for this format.

Implements BaseWriter.

◆ GetFormatName()

std::string GetFormatName ( ) const
inlineoverridevirtual
Returns
The name of the format this reader expects.

Implements BaseWriter.

◆ Write()

bool Write ( MeshModel model)
overridevirtual
Parameters
modelThe model to write to file.

Implements MeshWriter.