parameters.h 609 B

12345678910111213141516171819202122
  1. #ifndef __PARAMETERS_H
  2. #define __PARAMETERS_H
  3. #include "datastring.h"
  4. #include <cstdint>
  5. // This is a parser for the parameters that come from a client's command.
  6. class parameters
  7. {
  8. public:
  9. parameters();
  10. static const int MAX_PARAMETERS = 10;
  11. datastring string_parameters[MAX_PARAMETERS];
  12. int64_t long_parameters[MAX_PARAMETERS];
  13. int parameter_count;
  14. datastring get_string_parameter(datastring &input,bool &success);
  15. int64_t get_long_parameter(datastring &input,bool &success);
  16. void string_parameter(datastring &input,bool &success);
  17. void long_parameter(datastring &input,bool &success);
  18. };
  19. #endif