IOSS 2.0
Loading...
Searching...
No Matches
Ioss::ChangeSet Class Reference

#include <Ioss_ChangeSet.h>

Inheritance diagram for Ioss::ChangeSet:
[legend]
Collaboration diagram for Ioss::ChangeSet:
[legend]

Public Member Functions

 ChangeSet (Ioss::Region *region)
 
 ChangeSet (Ioss::DatabaseIO *db, const std::string &dbName, const std::string &dbType, unsigned fileCyclicCount)
 
virtual ~ChangeSet ()
 
 ChangeSet ()=delete
 
 ChangeSet (const ChangeSet &)=delete
 
IOSS_NODISCARD unsigned supported_formats () const
 
IOSS_NODISCARD unsigned database_format () const
 
virtual void populate_change_sets (bool loadAllFiles=true)
 
virtual IOSS_NODISCARD DatabaseIOopen_change_set (unsigned index, Ioss::DatabaseUsage usage)
 
virtual void close_change_set (unsigned index)
 
IOSS_NODISCARD size_t size () const
 
IOSS_NODISCARD const std::vector< std::string > & names () const
 
IOSS_NODISCARD std::string get_change_set_name (unsigned index) const
 
IOSS_NODISCARD unsigned get_file_cyclic_count () const
 

Static Public Member Functions

static std::string get_cyclic_database_filename (const std::string &baseFileName, unsigned int fileCyclicCount, unsigned int step)
 
static std::string get_linear_database_filename (const std::string &baseFileName, unsigned int step)
 

Protected Member Functions

void get_cyclic_multi_file_change_sets ()
 
void get_linear_multi_file_change_sets ()
 
void verify_change_set_index (unsigned index) const
 
virtual void clear_change_sets ()
 
DatabaseIOget_database () const
 
IOSS_NODISCARD const ParallelUtilsutil () const
 

Protected Attributes

Ioss::DatabaseIOm_database {nullptr}
 
std::string m_ioDB
 
std::string m_dbType
 
unsigned m_fileCyclicCount {0}
 
unsigned m_supportedFormats {CHANGE_SET_LINEAR_MULTI_FILES | CHANGE_SET_CYCLIC_MULTI_FILES}
 
unsigned m_databaseFormat {CHANGE_SET_NONE}
 
std::vector< std::string > m_changeSetNames
 

Private Attributes

std::vector< DatabaseIO * > m_changeSetDatabases
 

Constructor & Destructor Documentation

◆ ChangeSet() [1/4]

Ioss::ChangeSet::ChangeSet ( Ioss::Region * region)
explicit

◆ ChangeSet() [2/4]

Ioss::ChangeSet::ChangeSet ( Ioss::DatabaseIO * db,
const std::string & dbName,
const std::string & dbType,
unsigned fileCyclicCount )

◆ ~ChangeSet()

Ioss::ChangeSet::~ChangeSet ( )
virtual

Reimplemented in Ioex::ChangeSet.

◆ ChangeSet() [3/4]

Ioss::ChangeSet::ChangeSet ( )
delete

◆ ChangeSet() [4/4]

Ioss::ChangeSet::ChangeSet ( const ChangeSet & )
delete

Member Function Documentation

◆ clear_change_sets()

void Ioss::ChangeSet::clear_change_sets ( )
protectedvirtual

Reimplemented in Ioex::ChangeSet.

◆ close_change_set()

void Ioss::ChangeSet::close_change_set ( unsigned index)
virtual

Reimplemented in Ioex::ChangeSet.

◆ database_format()

IOSS_NODISCARD unsigned Ioss::ChangeSet::database_format ( ) const
inline

◆ get_change_set_name()

std::string Ioss::ChangeSet::get_change_set_name ( unsigned index) const

◆ get_cyclic_database_filename()

std::string Ioss::ChangeSet::get_cyclic_database_filename ( const std::string & baseFileName,
unsigned int fileCyclicCount,
unsigned int step )
static

◆ get_cyclic_multi_file_change_sets()

void Ioss::ChangeSet::get_cyclic_multi_file_change_sets ( )
protected

◆ get_database()

DatabaseIO * Ioss::ChangeSet::get_database ( ) const
protected

◆ get_file_cyclic_count()

IOSS_NODISCARD unsigned Ioss::ChangeSet::get_file_cyclic_count ( ) const
inline

◆ get_linear_database_filename()

std::string Ioss::ChangeSet::get_linear_database_filename ( const std::string & baseFileName,
unsigned int step )
static

◆ get_linear_multi_file_change_sets()

void Ioss::ChangeSet::get_linear_multi_file_change_sets ( )
protected

◆ names()

IOSS_NODISCARD const std::vector< std::string > & Ioss::ChangeSet::names ( ) const
inline

◆ open_change_set()

Ioss::DatabaseIO * Ioss::ChangeSet::open_change_set ( unsigned index,
Ioss::DatabaseUsage usage )
virtual

Reimplemented in Ioex::ChangeSet.

◆ populate_change_sets()

void Ioss::ChangeSet::populate_change_sets ( bool loadAllFiles = true)
virtual

Reimplemented in Ioex::ChangeSet.

◆ size()

IOSS_NODISCARD size_t Ioss::ChangeSet::size ( ) const
inline

◆ supported_formats()

IOSS_NODISCARD unsigned Ioss::ChangeSet::supported_formats ( ) const
inline

◆ util()

const ParallelUtils & Ioss::ChangeSet::util ( ) const
protected

◆ verify_change_set_index()

void Ioss::ChangeSet::verify_change_set_index ( unsigned index) const
protected

Member Data Documentation

◆ m_changeSetDatabases

std::vector<DatabaseIO *> Ioss::ChangeSet::m_changeSetDatabases
private

◆ m_changeSetNames

std::vector<std::string> Ioss::ChangeSet::m_changeSetNames
protected

◆ m_database

Ioss::DatabaseIO* Ioss::ChangeSet::m_database {nullptr}
protected

◆ m_databaseFormat

unsigned Ioss::ChangeSet::m_databaseFormat {CHANGE_SET_NONE}
protected

◆ m_dbType

std::string Ioss::ChangeSet::m_dbType
protected

◆ m_fileCyclicCount

unsigned Ioss::ChangeSet::m_fileCyclicCount {0}
protected

◆ m_ioDB

std::string Ioss::ChangeSet::m_ioDB
protected

◆ m_supportedFormats

unsigned Ioss::ChangeSet::m_supportedFormats {CHANGE_SET_LINEAR_MULTI_FILES | CHANGE_SET_CYCLIC_MULTI_FILES}
protected

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