/usr/include/mathic/StringParameter.h is in libmathic-dev 1.0~git20160320-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #ifndef MATHIC_STRING_PARAMETER_GUARD
#define MATHIC_STRING_PARAMETER_GUARD
#include "stdinc.h"
#include "CliParameter.h"
#include <utility>
#include <string>
namespace mathic {
class StringParameter : public CliParameter {
public:
StringParameter(const std::string& name,
const std::string& description,
const std::string& defaultValue);
const std::string& value() const {return _value;}
void setValue(const std::string& value) {_value = value;}
operator const std::string&() const {return value();}
void operator=(const std::string& value) {setValue(value);}
bool operator==(const std::string& str) const {return value() == str;}
virtual std::string argumentType() const;
virtual std::string valueAsString() const;
virtual void processArgument(const std::string& argument);
private:
std::string _value;
};
}
#endif
|