version  0.0.1
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:
mspass::utility::ProcessingHistory mspass::seismic::Seismogram mspass::seismic::TimeSeries mspass::seismic::SeismogramWGaps mspass::seismic::TimeSeriesWGaps

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 };

◆ ~BasicProcessingHistory()

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

◆ BasicProcessingHistory() [2/3]

mspass::utility::BasicProcessingHistory::BasicProcessingHistory ( const std::string  jobname,
const std::string  jobid 
)
inline
63 {
64 jid = jobid;
65 jnm = jobname;
66 };

◆ BasicProcessingHistory() [3/3]

mspass::utility::BasicProcessingHistory::BasicProcessingHistory ( const BasicProcessingHistory parent)
inline
67 {
68 jid = parent.jid;
69 jnm = parent.jnm;
70 };

Member Function Documentation

◆ jobid()

std::string mspass::utility::BasicProcessingHistory::jobid ( ) const
inline
80{ return jid; };

◆ jobname()

std::string mspass::utility::BasicProcessingHistory::jobname ( ) const
inline
82{ return 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.

79{ return 0; };

◆ operator=()

BasicProcessingHistory & mspass::utility::BasicProcessingHistory::operator= ( const BasicProcessingHistory parent)
inline
84 {
85 if (this != (&parent)) {
86 jnm = parent.jnm;
87 jid = parent.jid;
88 }
89 return *this;
90 }

◆ set_jobid()

void mspass::utility::BasicProcessingHistory::set_jobid ( const std::string &  newjid)
inline
81{ jid = newjid; };

◆ set_jobname()

void mspass::utility::BasicProcessingHistory::set_jobname ( const std::string  jobname)
inline
83{ jnm = jobname; };

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