Commit 01cf0e4f authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

cleanup of old operator argv const char** functions

parent e0fa4aa8
......@@ -91,36 +91,20 @@ operatorArgc(void)
int
cdoOperatorArgc(void)
{
return localProcess->m_oargvcpp.size();
}
char **
operatorArgv(void)
{
if (PROCESS)
{
std::string oargv_str = "";
for (const auto &entry : localProcess->m_oargv)
{
oargv_str += std::string(entry) + " ";
}
Debug(PROCESS, "Getting %d operator arguments: ", localProcess->m_oargv.size(), oargv_str);
}
return &localProcess->m_oargv[0];
return localProcess->getOperArgc();
}
const std::string &
cdoOperatorArgv(int idx)
{
if (localProcess->m_oargvcpp.empty()) cdoAbort("Missing Argument");
if (localProcess->getOperArgc()==0) cdoAbort("Missing Argument");
return localProcess->m_oargvcpp[idx];
return localProcess->m_oargv[idx];
}
std::vector<std::string> &cdoGetOperArgv()
{
return localProcess->m_oargvcpp;
return localProcess->m_oargv;
}
void
......
......@@ -25,7 +25,6 @@ Process &processSelf(void);
bool cdoAssertFilesOnly();
bool cdoStreamIsPipe(CdoStreamID streamID);
bool unchangedRecord();
char **operatorArgv(void);
const std::string & cdoOperatorArgv(int p_idx);
std::vector<std::string> &cdoGetOperArgv();
char *cdoVlistInqVarName(int vlistID, int varID, char *name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment