 |
OpendTect
6.6
|
Go to the documentation of this file.
28 :
IOPar(par),workingdir_(workdir) {}
36 const char* fnm=
nullptr,
bool append=
true);
39 const char* fnm=
nullptr,
bool append=
true);
44 const char*
getWorkDir()
const {
return workingdir_.buf(); }
56 typedef GMTPar* (*GMTParCreateFunc)(
const IOPar&,
const char*);
65 const char*
name(
int)
const;
66 int size()
const {
return entries_.size(); }
72 Entry(
const char* nm,
91 #define mErrStrmRet(s) { strm << s << '\n'; return false; }
93 #define mGetRangeString( str ) \
94 Interval<float> xrg, yrg, mapdim; \
95 get( ODGMT::sKeyXRange(), xrg ); \
96 get( ODGMT::sKeyYRange(), yrg ); \
97 str = "-R"; str += xrg.start; str += "/"; \
98 str += xrg.stop; str += "/"; \
99 str += yrg.start; str += "/"; str += yrg.stop;
101 #define mGetProjString( str, projkey ) \
102 Interval<float> dim; \
103 get( ODGMT::sKeyMapDim(), dim ); \
104 str += "-J"; str += projkey; str += dim.start; str += "c/"; \
105 str += dim.stop; str += "c";
107 #define mGetColorString( col, str ) \
108 str = (int) col.r(); \
109 str += "/"; str += (int) col.g(); \
110 str += "/"; str += (int) col.b();
112 #define mGetLineStyleString( ls, str ) \
113 str = ls.width_; str += "p,"; \
114 BufferString lscol; \
115 mGetColorString( ls.color_, lscol ); \
116 str += lscol; str += ","; \
117 switch ( ls.type_ ) \
119 case OD::LineStyle::Dash: \
122 case OD::LineStyle::Dot: \
125 case OD::LineStyle::DashDot: \
128 case OD::LineStyle::DashDotDot: \
Definition: initgmtplugin.h:17
virtual bool doExecute(od_ostream &, const char *)=0
const char * getWorkDir() const
Definition: gmtpar.h:44
ManagedObjectSet< Entry > entries_
Definition: gmtpar.h:79
#define mGlobal(module)
Definition: commondefs.h:180
Entry * getEntry(const char *) const
const char * name(int) const
static BufferString getErrFnm()
#define mExpClass(module)
Definition: commondefs.h:177
GMTPar(const IOPar &par, const char *workdir)
Definition: gmtpar.h:27
static void checkErrStrm(const char *, od_ostream &)
bool execCmd(const OS::MachineCommand &, od_ostream &logstrm, const char *fnm=nullptr, bool append=true)
#define mStruct(module)
Definition: commondefs.h:182
bool execute(od_ostream &, const char *)
int add(const char *nm, GMTParCreateFunc)
static OS::MachineCommand getWrappedComm(const OS::MachineCommand &)
virtual bool fillLegendPar(IOPar &) const
Definition: gmtpar.h:33
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
int size() const
Definition: gmtpar.h:66
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:94
GMTPar *(* GMTParCreateFunc)(const IOPar &, const char *)
Definition: gmtpar.h:56
bool append(OD::ValVec< T, IT > &to, const OD::ValVec< S, J > &from)
append allowing a different type to be merged into set
Definition: typeset.h:239
friend GMTParFactory & GMTPF()
GMTPar * create(const IOPar &, const char *workdir) const
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
BufferString workingdir_
Definition: gmtpar.h:51
virtual const char * userRef() const =0
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
od_ostream makeOStream(const OS::MachineCommand &, od_ostream &logstrm, const char *fnm=nullptr, bool append=true)
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021