Massive reformating and cleanup
This commit is contained in:
@ -5,22 +5,22 @@
|
||||
|
||||
#include "cmd/args/arg_base.hpp"
|
||||
|
||||
namespace fsh{
|
||||
namespace fsh {
|
||||
|
||||
class ArgInput : public _Argument {
|
||||
public:
|
||||
static std::istream& get(std::shared_ptr<_Argument> a) {
|
||||
return std::dynamic_pointer_cast<ArgInput>(a)->gvalue();
|
||||
}
|
||||
class ArgInput : public _Argument {
|
||||
public:
|
||||
static std::istream& get(std::shared_ptr<_Argument> a) {
|
||||
return std::dynamic_pointer_cast<ArgInput>(a)->gvalue();
|
||||
}
|
||||
|
||||
ArgInput() {}
|
||||
ArgInput() {}
|
||||
|
||||
virtual void svalue(const std::string& val, const Lexer::TokenType& type) override;
|
||||
virtual std::istream& gvalue();
|
||||
virtual void svalue(const std::string& val, const Lexer::TokenType& type) override;
|
||||
virtual std::istream& gvalue();
|
||||
|
||||
private:
|
||||
std::optional<std::stringstream> str;
|
||||
std::optional<std::ifstream> file;
|
||||
};
|
||||
private:
|
||||
std::optional<std::stringstream> str;
|
||||
std::optional<std::ifstream> file;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user