1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::ASerializable Class Referenceabstract

#include <ASerializable.hpp>

Inheritance diagram for gstlrn::ASerializable:
gstlrn::AAnam gstlrn::AMesh gstlrn::ANeigh gstlrn::Db gstlrn::Faults gstlrn::FracEnviron gstlrn::FracFamily gstlrn::FracFault gstlrn::Grid gstlrn::Model gstlrn::PolyLine2D gstlrn::Polygons gstlrn::Rule gstlrn::Table gstlrn::Vario

Public Member Functions

 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
 ASerializable (ASerializable &&r) noexcept
 
ASerializableoperator= (ASerializable &&r) noexcept
 
virtual ~ASerializable ()
 
bool dumpToNF (const String &NFFilename, const EFormatNF &format=EFormatNF::fromKey("DEFAULT"), bool verbose=false) const
 Dump the contents of an object into an Output File using a given Output NF Format.
 
void setDefaultFormatNF (const EFormatNF &format)
 
virtual String _getNFName () const =0
 

Static Public Member Functions

static String buildFileName (Id status, const String &filename, bool ensureDirExist=false)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetPrefixName ()
 

Constructor & Destructor Documentation

◆ ASerializable() [1/3]

gstlrn::ASerializable::ASerializable ( )
default

◆ ASerializable() [2/3]

gstlrn::ASerializable::ASerializable ( const ASerializable r)
default

◆ ASerializable() [3/3]

gstlrn::ASerializable::ASerializable ( ASerializable &&  r)
defaultnoexcept

◆ ~ASerializable()

gstlrn::ASerializable::~ASerializable ( )
virtualdefault

Member Function Documentation

◆ _getNFName()

virtual String gstlrn::ASerializable::_getNFName ( ) const
pure virtual

◆ buildFileName()

String gstlrn::ASerializable::buildFileName ( Id  status,
const String filename,
bool  ensureDirExist = false 
)
static

Build a standard filename for Read or Write operation

Parameters
status1 for Read and 2 for Write
filenameName of the filename (see remark)
ensureDirExistWhen TRUE, the Directory is created if not already existing
Returns

◆ dumpToNF()

bool gstlrn::ASerializable::dumpToNF ( const String NFFilename,
const EFormatNF &  format = EFormatNF::fromKey("DEFAULT"),
bool  verbose = false 
) const

Dump the contents of an object into an Output File using a given Output NF Format.

Parameters
NFFilenameName of the Output File
formatChoice of the format (see remarks)
verboseVerbose flag
Returns
true or false
Remarks
In the argument 'format', the user can select the format for encoding the contents of the output file. If the value DEFAULT is used, the package uses the Format currently defined as the defaulted one. This default value can be updated using the method ASerializable::DefaultFormatNF()

◆ getFileIdentity()

String gstlrn::ASerializable::getFileIdentity ( const String filename,
bool  verbose = false 
)
static

Returns the Identity of a Neutral File which allows knowing its type

Parameters
filenameName of the Neutral File
verboseVerbose flag
Returns

◆ getPrefixName()

const String & gstlrn::ASerializable::getPrefixName ( )
static

◆ operator=() [1/2]

ASerializable & gstlrn::ASerializable::operator= ( ASerializable &&  r)
defaultnoexcept

◆ operator=() [2/2]

ASerializable & gstlrn::ASerializable::operator= ( const ASerializable r)
default

◆ setDefaultFormatNF()

void gstlrn::ASerializable::setDefaultFormatNF ( const EFormatNF &  format)

◆ setPrefixName()

void gstlrn::ASerializable::setPrefixName ( const String prefixName)
static

◆ unsetPrefixName()

void gstlrn::ASerializable::unsetPrefixName ( void  )
static

The documentation for this class was generated from the following files: