43 lines
716 B
C++
43 lines
716 B
C++
#ifndef _AVIFILE_PARAMS_HPP_
|
|
#define _AVIFILE_PARAMS_HPP_
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
#ifndef _AVIFILE_NAMEVALUE_HPP_
|
|
#include <avifile/NameValuePair.hpp>
|
|
#endif
|
|
|
|
class Params
|
|
{
|
|
public:
|
|
Params(int argc,char **argv);
|
|
Params();
|
|
virtual ~Params();
|
|
void setArgs(int argc,char **argv);
|
|
String getParam(const String &key)const;
|
|
bool contains(const String &key)const;
|
|
void showParams(void);
|
|
private:
|
|
int getParams(int argc,char **argv);
|
|
void setParam(const String &key,const String &value);
|
|
|
|
Block<NameValuePair> mNameValuePairs;
|
|
};
|
|
|
|
inline
|
|
Params::Params(int argc,char **argv)
|
|
{
|
|
getParams(argc,argv);
|
|
}
|
|
|
|
inline
|
|
Params::Params()
|
|
{
|
|
}
|
|
|
|
inline
|
|
Params::~Params()
|
|
{
|
|
}
|
|
#endif
|