NextTrain format file library
Diff: NextTrainFile.h
- Revision:
- 2:0aa41f709144
- Parent:
- 1:f89f955130c7
diff -r f89f955130c7 -r 0aa41f709144 NextTrainFile.h --- a/NextTrainFile.h Wed Nov 17 16:21:38 2010 +0000 +++ b/NextTrainFile.h Thu Nov 18 17:40:15 2010 +0000 @@ -55,6 +55,7 @@ FILE* m_fp; NextInfo m_ni; bool m_shortopt; + char m_delim; unsigned char m_index [MAX_OPTIONID]; char m_optbuf[MAX_OPTBUF]; @@ -71,6 +72,7 @@ Status open(const char* ntFile); Status close(); void use_shortopt(bool f) { m_shortopt = f; } + void set_delim (char d) { m_delim = d; } Status search(time_t dt = 0, int offset = 0); const NextInfo* next() const { return &m_ni; } };