First stab at modularizing (broken build)

This commit is contained in:
Keith Winstein
2011-01-27 01:17:26 -05:00
parent db5808fa1f
commit 82a18ce978
9 changed files with 295 additions and 226 deletions
+35
View File
@@ -0,0 +1,35 @@
#ifndef TERMINALACTIONSTATE_HPP
#define TERMINALACTIONSTATE_HPP
#include <vector>
namespace Parser {
class Param;
class Collect;
class Clear;
}
namespace Terminal {
class ActionState {
private:
std::string params;
std::vector<int> parsed_params;
bool parsed;
std::string dispatch_chars;
void parse_params( void );
public:
ActionState();
int getparam( size_t N, int defaultval );
void newparamchar( Parser::Param *act );
void collect( Parser::Collect *act );
void clear( Parser::Clear *act );
std::string str( void );
};
}
#endif