FEDEM Solver  R8.0
Source code of the dynamics solver
Classes | Typedefs | Functions
FFaCmdLineArg.H File Reference

General command-line option handler. More...

#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <cctype>
Include dependency graph for FFaCmdLineArg.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FFaCmdLineEntryBase
 Abstract interface for command-line options. More...
 
class  FFaCmdLineEntry< T >
 Template class for command-line options of arbitrary value type. More...
 
class  FFaCmdLineArg
 Singleton class for management of command-line options. More...
 

Typedefs

typedef std::vector< int > IntVec
 Convenience type definition. More...
 
typedef std::vector< double > DoubleVec
 Convenience type definition. More...
 

Functions

template<class T >
std::string vec2string (const std::vector< T > &value)
 Helper function converting a vector of something to a string. More...
 
template<class T >
const std::vector< T > & complDefault (const std::vector< T > &value, const std::vector< T > &defval)
 Helper function completing a vector-valued option value from defaults. More...
 

Detailed Description

General command-line option handler.

Typedef Documentation

◆ DoubleVec

typedef std::vector<double> DoubleVec

Convenience type definition.

◆ IntVec

typedef std::vector<int> IntVec

Convenience type definition.

Function Documentation

◆ complDefault()

template<class T >
const std::vector<T>& complDefault ( const std::vector< T > &  value,
const std::vector< T > &  defval 
)
inline

Helper function completing a vector-valued option value from defaults.

◆ vec2string()

template<class T >
std::string vec2string ( const std::vector< T > &  value)
inline

Helper function converting a vector of something to a string.