1.8.0a1
CCC
 
Loading...
Searching...
No Matches
ASerializable Class Referenceabstract

#include <ASerializable.hpp>

Inheritance diagram for ASerializable:
AAnam AMesh ANeigh Db Faults FracEnviron FracFamily FracFault Grid Model PolyLine2D Polygons Rule Table 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 (int 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 String & getPrefixName ()
 

Constructor & Destructor Documentation

◆ ASerializable() [1/3]

ASerializable::ASerializable ( )
default

◆ ASerializable() [2/3]

ASerializable::ASerializable ( const ASerializable r)
default

◆ ASerializable() [3/3]

ASerializable::ASerializable ( ASerializable &&  r)
defaultnoexcept

◆ ~ASerializable()

ASerializable::~ASerializable ( )
virtualdefault

Member Function Documentation

◆ _getNFName()

virtual String ASerializable::_getNFName ( ) const
pure virtual

◆ buildFileName()

String ASerializable::buildFileName ( int  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 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 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 & ASerializable::getPrefixName ( )
static

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setDefaultFormatNF()

void ASerializable::setDefaultFormatNF ( const EFormatNF &  format)

◆ setPrefixName()

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

◆ unsetPrefixName()

void ASerializable::unsetPrefixName ( void  )
static

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