Xmipp  v3.23.11-Nereus
Macros | Functions
argsprinter.cpp File Reference
#include "argsprinter.h"
#include "xmipp_filename.h"
#include "xmipp_color.h"
#include "xmipp_error.h"
Include dependency graph for argsprinter.cpp:

Go to the source code of this file.

Macros

#define COLOR(x, c)   (color ? colorString(x, c) : String(x))
 

Functions

bool matchArgInList (const String &argName, size_t n, const char **list)
 
bool isArgFile (const String &argName)
 

Macro Definition Documentation

◆ COLOR

#define COLOR (   x,
  c 
)    (color ? colorString(x, c) : String(x))

Definition at line 42 of file argsprinter.cpp.

Function Documentation

◆ isArgFile()

bool isArgFile ( const String argName)

Definition at line 484 of file argsprinter.cpp.

485 {
486  const char* list[3] =
487  {"file", "metadata", "selfile"
488  };
489  return matchArgInList(argName, 3,
490  list);
491 }
bool matchArgInList(const String &argName, size_t n, const char **list)

◆ matchArgInList()

bool matchArgInList ( const String argName,
size_t  n,
const char **  list 
)

Definition at line 476 of file argsprinter.cpp.

477 {
478  for (size_t i = 0; i < n; ++i)
479  if (argName.find(list[i]) != String::npos)
480  return true;
481  return false;
482 }
#define i
int * n