MsPASS C++ API  2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
mspass::utility::BasicProcessingHistory Class Reference

#include <ProcessingHistory.h>

Inheritance diagram for mspass::utility::BasicProcessingHistory:
Inheritance graph
[legend]

Public Member Functions

 BasicProcessingHistory (const std::string jobname, const std::string jobid)
 
 BasicProcessingHistory (const BasicProcessingHistory &parent)
 
virtual size_t number_of_stages ()
 
std::string jobid () const
 
void set_jobid (const std::string &newjid)
 
std::string jobname () const
 
void set_jobname (const std::string jobname)
 
BasicProcessingHistoryoperator= (const BasicProcessingHistory &parent)
 

Protected Attributes

std::string jid
 
std::string jnm
 

Detailed Description

Base class defining core concepts.

Constructor & Destructor Documentation

◆ BasicProcessingHistory() [1/3]

mspass::utility::BasicProcessingHistory::BasicProcessingHistory ( )
inline
58 {
59 jid = std::string();
60 jnm = std::string();
61 };
std::string jnm
Definition ProcessingHistory.h:107
std::string jid
Definition ProcessingHistory.h:105

◆ ~BasicProcessingHistory()

virtual mspass::utility::BasicProcessingHistory::~BasicProcessingHistory ( )
inlinevirtual
62{};

◆ BasicProcessingHistory() [2/3]

mspass::utility::BasicProcessingHistory::BasicProcessingHistory ( const std::string  jobname,
const std::string  jobid 
)
inline

Construct with explicit job name and job identifier.

Parameters
jobnamedescriptive name of the processing job.
jobididentifier for the processing job or run.
68 {
69 jid = jobid;
70 jnm = jobname;
71 };
std::string jobname() const
Definition ProcessingHistory.h:91
std::string jobid() const
Definition ProcessingHistory.h:87

References jid, jnm, jobid(), and jobname().

◆ BasicProcessingHistory() [3/3]

mspass::utility::BasicProcessingHistory::BasicProcessingHistory ( const BasicProcessingHistory parent)
inline

Copy the job-identification fields from another history object.

73 {
74 jid = parent.jid;
75 jnm = parent.jnm;
76 };

References jid, and jnm.

Member Function Documentation

◆ jobid()

std::string mspass::utility::BasicProcessingHistory::jobid ( ) const
inline

Return the job identifier stored with this history object.

87{ return jid; };

References jid.

◆ jobname()

std::string mspass::utility::BasicProcessingHistory::jobname ( ) const
inline

Return the descriptive job name stored with this history object.

91{ return jnm; };

References jnm.

◆ number_of_stages()

virtual size_t mspass::utility::BasicProcessingHistory::number_of_stages ( )
inlinevirtual

Return number or processing algorithms applied to produce these data.

Implementations of this method need to return a count of the number of processing steps that have been applied to put the data in the current state. This method could be made pure, but for convenience the base class always returns 0 since it does not implement the actual history mechanism.

Reimplemented in mspass::utility::ProcessingHistory.

85{ return 0; };

◆ operator=()

BasicProcessingHistory & mspass::utility::BasicProcessingHistory::operator= ( const BasicProcessingHistory parent)
inline

Assign the job-identification fields from another history object.

95 {
96 if (this != (&parent)) {
97 jnm = parent.jnm;
98 jid = parent.jid;
99 }
100 return *this;
101 }

References jid, and jnm.

◆ set_jobid()

void mspass::utility::BasicProcessingHistory::set_jobid ( const std::string &  newjid)
inline

Replace the job identifier stored with this history object.

89{ jid = newjid; };

References jid.

◆ set_jobname()

void mspass::utility::BasicProcessingHistory::set_jobname ( const std::string  jobname)
inline

Replace the descriptive job name stored with this history object.

93{ jnm = jobname; };

References jnm, and jobname().

Member Data Documentation

◆ jid

std::string mspass::utility::BasicProcessingHistory::jid
protected

Identifier for the processing job or run that owns this history.

◆ jnm

std::string mspass::utility::BasicProcessingHistory::jnm
protected

Descriptive name of the processing job that owns this history.


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