Rudiments
csvsax.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_CSVSAX_H
5 #define RUDIMENTS_CSVSAX_H
6 
7 #include <rudiments/private/csvsaxincludes.h>
8 
12 class RUDIMENTS_DLLSPEC csvsax : public sax {
13  public:
14 
16  csvsax();
17 
19  virtual ~csvsax();
20 
23  void setQuote(char quote);
24 
27  char getQuote() const;
28 
31  void setDelimiter(char delimiter);
32 
34  char getDelimiter() const;
35 
36  protected:
37 
39  virtual bool headerStart();
40 
42  virtual bool column(const char *name, bool quoted);
43 
45  virtual bool headerEnd();
46 
48  virtual bool bodyStart();
49 
51  virtual bool rowStart();
52 
54  virtual bool field(const char *value, bool quoted);
55 
57  virtual bool rowEnd();
58 
60  virtual bool bodyEnd();
61 
62  #include <rudiments/private/csvsax.h>
63 };
64 
65 #endif
Definition: csvsax.h:12
Definition: sax.h:12