2001-06-02 Tom Dyas * Version 0.3.2 2001-03-06 Tom Dyas * libflatfile/DB.cpp (PalmLib::FlatFile::DB::DB): Use PalmLib::get_short() and not PalmLib::get_long() when trying to extract a pi_uint16_t. Bug spotted by krohorl . 2001-02-26 Tom Dyas * libflatfile/DB.cpp (PalmLib::FlatFile::DB::extract_schema): Map field types 3 and 4 to date and time types, respectively. (PalmLib::FlatFile::DB::DB): Unpack date and time field types. (PalmLib::FlatFile::DB::make_record): Pack date and time field types. (PalmLib::FlatFile::DB::build_standard_chunks): Encode date and time field types as 3 and 4, respectively. (PalmLib::FlatFile::DB::supportsFieldType): DB now supports date and time field types. * configure.in: Increment version to 0.3.2. * NEWS: Mention the support for date and time fields in DB-format databases since DB v0.3.1. 2000-12-12 Tom Dyas * Version 0.3.1 * README: Add JFile v3.x URL. Modify MobileDB URL slightly to point at the product page. * NEWS: New file. General description of changes between versions. * TODO: Remove JFile v3.x items since they are done. * Makefile.am (EXTRA_DIST): Add NEWS file. 2000-11-21 Tom Dyas * flatfile/getdate.y: Rename get_date() to parse_datetime_string() to avoid conflict on Win32. * flatfile/getdate.h: Likewise. * flatfile/csv2pdb.cpp: Likewise. Mention JFile v3 support in the help screen. * win32/csv2pdb/csv2pdb.dsp: Added getdate.c * win32/flatfile/flatfile.dsp: Added JFile3.cpp and JFile3.h * docs/manual.txt (DATABASE FORMAT): Add section for the JFile version 3 support. 2000-11-14 Tom Dyas * flatfile/csv2pdb.cpp (read_csv_file): Use new prototype for get_date(). Add 1900 to the tm_year value not 100 since tm_year is the number of years since 1900. * flatfile/getdate.h: Changed prototype of get_date() to include a struct tm output parameter. * flatfile/getdate.y (get_date): Added tm_out output parameter. Fill in the output parameter. Commented out some of the code that returned -1 in valid situations. Just fall through. * libflatfile/JFile3.cpp (JFile3::build_record): Now a const method. (JFile3::outputPDB): Pack records into the output PDB object. This completes the JFile3 support. * libflatfile/JFile3.h (class JFile3): build_record() is now a const method. * libflatfile/OldDB.cpp (outputPDB): Qualify several names with the full namespace. Fix bug in the schema packing loop control. Pack the field widths. Allocate a PalmLib::Record once and not from a temporary buffer. 2000-11-08 Tom Dyas * configure.in: Increment version to 0.3.1. Added checks needed by the date parser. * flatfile/Makefile.am (csv2pdb_SOURCES): Add getdate.y and detdate.h which form the date parser. * flatfile/getdate.y: New file. Date parser written in YACC. * flatfile/getdate.h: New file. Header for the date parser. * flatfile/csv2pdb.cpp: Include getdate.h in C mode. (string2type): Recognize the float, date, time, and datetime types which are now supported somewhat. (read_csv_mode): Support the new field types. (main): Add a colon to one of the error messages. * flatfile/pdb2csv.cpp: Include time headers correctly. (output_csv_file): Added arguments for the date, time, and datetime format strings. Use strftime() to output the date/time fields. (usage): Add help lines for the date/time format options. (main): Support options for changing the default date/time format strings. 2000-11-06 Tom Dyas * libflatfile/Field.h (class Field): Add no_value member which is true if the field has no value similar to a SQL NULL value. Changed v_date and v_time members to be structures with the date and time values split out. * libpalm/Block.cpp (PalmLib::Block::resize): New function. Changes the size of the data block. * libpalm/Block.h (class Block): Prototype for the above function. * libflatfile/JFile3.h (class JFile3): Added const to the argument of the classify method. Added build_record() private method which combines a vector of strings into a packed record. * libflatfile/JFile3.cpp: Finish up the support except for packing the fields when creating a PalmOS database. * flatfile/pdb2csv.cpp (getTypeName): Use fully-qualified names for field types. (output_csv_file): Likewise. (output_csv_file): Support FLOAT, DATE, TIME, and DATETIME fields. 2000-11-04 Tom Dyas * flatfile/pdb2csv.cpp (quote_string): Output \v for vertical tab characters. Output \xHH for unprintable characters. Make sure to use std::ends to terminate the string buffer. * libsupport/strop.cpp (str_to_array): Support \v escape sequence. Remove support for decimal escape sequence which is nonstandard. Add support for hexidecimal escape sequence based partially on patch from Ian Jackson . 2000-11-03 Tom Dyas * libflatfile/DB.cpp (extract_listviews): Decode list view names correctly. * libflatfile/JFile3.h: New file. Definition of the PalmLib::FlatFile::JFile3 class which reads/writes JFile v3 flat-file database files. * libflatfile/JFile3.cpp: New file. Implementation of the PalmLib::FlatFile::JFile3 class. * libflatfile/Factory.cpp: Support JFile v3 databases. * libflatfile/Makefile.am (libflatfile_la_SOURCES): Add JFile3.cpp and JFile3.h. * libflatfile/Database.h: Added const to the PalmLib::Database& argument of the constructor. * libflatfile/Database.cpp: Likewise. 2000-10-22 Tom Dyas * Version 0.3.0 - Too many changes to list since the entire source tree was revamped. 1999-11-27 Tom Dyas * *.h,*.cpp: Removed [set|get]FindDisabledFlag in favor of more general getOptions() and setOption(). 1999-11-19 Tom Dyas * ListDB.cpp (addRecord): Fleshed out adding a record. (addField): Fleshed out adding fields. (make_appinfo): New function. Creates the app info block. (save): Fleshed out saving code. * csv2pdb.cpp: Added support for List-format databases. 1999-11-12 Tom Dyas * ListDB.h: New file. Defines ListDB class to read/write List-format databases. * ListDB.cpp: New file. Implement ListDB class. * Makefile.am (pdb2csv_SOURCES): Added ListDB.cpp. (noinst_HEADERS): Added ListDB.h * pdb2csv.cpp: Add support for List-format databases. 1999-11-08 Tom Dyas * Version 0.2.1 1999-11-04 Tom Dyas * DBDatabase.cpp (load): Decode field type correctly. Added some error checks for the header size. Allow TKD3 creator used in older version of DB. * DBDatabase.cpp: Removed << operator for FieldData type. * DBDatabase.h,DBDatabase.cpp,MobileDB.h,MobileDB.cpp, JFile3.h,JFile3.cpp,csv2pdb.cpp,pdb2csv.cpp, DatabaseInterface.h: s/FindFlag/FindDisabledFlag/ 1999-11-01 Tom Dyas * PalmDatabase.h (class PalmDatabase): Got rid of load_error and save_error in favor of just error. * PalmDatabase.cpp (PalmDatabase::load): load_error -> error (PalmDatabase::save): save_error -> error * DBDatabase.cpp (DBDatabase::load): load_error -> error * MobileDB.cpp (MobileDB::load): Ditto. * csv2pdb.cpp (main): save_error -> error * pdb2csv.cpp (main): load_error -> error * dump-pdb.cpp (main): load_error -> error 1999-10-31 Tom Dyas * Makefile.am: Programs now depend directly on the source files and not on the intermediate libraries. * dump-pdb.cpp (id2str): New function. Returns pretty print version of creator and type values. Got rid of stupid iomanip stuff. 1999-10-27 Tom Dyas * Version 0.2.0