Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-19 08:08:31

0001 // I/O of numbers.
0002 
0003 #ifndef _CL_NUMBER_IO_H
0004 #define _CL_NUMBER_IO_H
0005 
0006 #include "cln/io.h"
0007 #include "cln/number.h"
0008 #include "cln/exception.h"
0009 
0010 namespace cln {
0011 
0012 // Input.
0013 
0014 class read_number_exception : public runtime_exception {
0015 public:
0016     explicit read_number_exception(const std::string & what)
0017         : runtime_exception(what) {}
0018 };
0019 
0020 // Finish with bad syntax.
0021 class read_number_bad_syntax_exception : public read_number_exception {
0022 public:
0023     read_number_bad_syntax_exception(const char * string, const char * string_limit);
0024 };
0025 
0026 // Finish with junk after the number.
0027 class read_number_junk_exception : public read_number_exception {
0028 public:
0029     read_number_junk_exception(const char * string_rest, const char * string, const char * string_limit);
0030 };
0031 
0032 // Finish with premature EOF.
0033 class read_number_eof_exception : public read_number_exception {
0034 public:
0035     read_number_eof_exception();
0036 };
0037 
0038 struct cl_read_flags;
0039 
0040 }  // namespace cln
0041 
0042 #endif /* _CL_NUMBER_IO_H */