diff --git a/src/rewrite/Att.cpp b/src/rewrite/Att.cpp new file mode 100644 index 000000000..f0b6274c7 --- /dev/null +++ b/src/rewrite/Att.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Att.h" + +//////////////////////////////////////////////////////////////////////////////// +Att::Att () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Att::Att (const Att& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Att& Att::operator= (const Att& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Att::~Att () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Att.h b/src/rewrite/Att.h new file mode 100644 index 000000000..fa33b5a0a --- /dev/null +++ b/src/rewrite/Att.h @@ -0,0 +1,55 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_ATT +#define INCLUDED_ATT + +class Att +{ +public: + Att (); // Default constructor + Att (const Att&); // Copy constructor + Att& operator= (const Att&); // Assignment operator + ~Att (); // Destructor + +/* +Att (name, value) +std::string name () +std::string value () +int value_int () +addMod () +bool isFilter () +bool isRequired () +bool isInternal () +composeF4 () +parse (const std::stirng&) +*/ + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Context.cpp b/src/rewrite/Context.cpp new file mode 100644 index 000000000..ba357bf45 --- /dev/null +++ b/src/rewrite/Context.cpp @@ -0,0 +1,80 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Context.h" + +//////////////////////////////////////////////////////////////////////////////// +Context::Context () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Context::Context (const Context& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Context& Context::operator= (const Context& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Context::~Context () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +void Context::initialize () +{ + // TODO Load config + // TODO Load pending.data + // TODO Load completed.data + // TODO Load deleted.data +} + +//////////////////////////////////////////////////////////////////////////////// +int Context::commandLine (int argc, char** argv) +{ + // TODO Support rc: override. + return 0; +} + +//////////////////////////////////////////////////////////////////////////////// +int Context::run () +{ + return 0; +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Context.h b/src/rewrite/Context.h new file mode 100644 index 000000000..1be1b185f --- /dev/null +++ b/src/rewrite/Context.h @@ -0,0 +1,62 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_CONTEXT +#define INCLUDED_CONTEXT + +#include "Filter.h" +#include "Keymap.h" +//#include "Config.h" +#include "Sequence.h" +#include "TDB.h" +#include "T.h" + + +class Context +{ +public: + Context (); // Default constructor + Context (const Context&); // Copy constructor + Context& operator= (const Context&); // Assignment operator + ~Context (); // Destructor + + void initialize (); + int commandLine (int, char**); + int run (); + +public: +// Config config; + Filter filter; + Keymap keymap; + Sequence sequence; + T task; + TDB tdb; + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Date.cpp b/src/rewrite/Date.cpp new file mode 100644 index 000000000..af9a4b56a --- /dev/null +++ b/src/rewrite/Date.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Date.h" + +//////////////////////////////////////////////////////////////////////////////// +Date::Date () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Date::Date (const Date& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Date& Date::operator= (const Date& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Date::~Date () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Date.h b/src/rewrite/Date.h new file mode 100644 index 000000000..40b906db1 --- /dev/null +++ b/src/rewrite/Date.h @@ -0,0 +1,46 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_DATE +#define INCLUDED_DATE + +class Date +{ +public: + Date (); // Default constructor + Date (const Date&); // Copy constructor + Date& operator= (const Date&); // Assignment operator + ~Date (); // Destructor + +/* +bool isDate (const std::string&) +*/ + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Duration.cpp b/src/rewrite/Duration.cpp new file mode 100644 index 000000000..f6acb8964 --- /dev/null +++ b/src/rewrite/Duration.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Duration.h" + +//////////////////////////////////////////////////////////////////////////////// +Duration::Duration () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Duration::Duration (const Duration& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Duration& Duration::operator= (const Duration& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Duration::~Duration () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Duration.h b/src/rewrite/Duration.h new file mode 100644 index 000000000..891a00c4d --- /dev/null +++ b/src/rewrite/Duration.h @@ -0,0 +1,46 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_DURATION +#define INCLUDED_DURATION + +class Duration +{ +public: + Duration (); // Default constructor + Duration (const Duration&); // Copy constructor + Duration& operator= (const Duration&); // Assignment operator + ~Duration (); // Destructor + +/* +bool isDuration (const std::string&) +*/ + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Filter.cpp b/src/rewrite/Filter.cpp new file mode 100644 index 000000000..10ad23768 --- /dev/null +++ b/src/rewrite/Filter.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Filter.h" + +//////////////////////////////////////////////////////////////////////////////// +Filter::Filter () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Filter::Filter (const Filter& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Filter& Filter::operator= (const Filter& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Filter::~Filter () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Filter.h b/src/rewrite/Filter.h new file mode 100644 index 000000000..814a1851f --- /dev/null +++ b/src/rewrite/Filter.h @@ -0,0 +1,48 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_FILTER +#define INCLUDED_FILTER + +class Filter +{ +public: + Filter (); // Default constructor + Filter (const Filter&); // Copy constructor + Filter& operator= (const Filter&); // Assignment operator + ~Filter (); // Destructor + +/* +add (Att&) +bool Filter::pass (T&) +Filter::parse () +*/ + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Keymap.cpp b/src/rewrite/Keymap.cpp new file mode 100644 index 000000000..de7c0a549 --- /dev/null +++ b/src/rewrite/Keymap.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Keymap.h" + +//////////////////////////////////////////////////////////////////////////////// +Keymap::Keymap () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Keymap::Keymap (const Keymap& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Keymap& Keymap::operator= (const Keymap& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Keymap::~Keymap () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Keymap.h b/src/rewrite/Keymap.h new file mode 100644 index 000000000..91c27ba8b --- /dev/null +++ b/src/rewrite/Keymap.h @@ -0,0 +1,42 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_KEYMAP +#define INCLUDED_KEYMAP + +class Keymap +{ +public: + Keymap (); // Default constructor + Keymap (const Keymap&); // Copy constructor + Keymap& operator= (const Keymap&); // Assignment operator + ~Keymap (); // Destructor + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Makefile b/src/rewrite/Makefile new file mode 100644 index 000000000..7115320db --- /dev/null +++ b/src/rewrite/Makefile @@ -0,0 +1,23 @@ +PROJECT = 1.8 +CFLAGS = -I. -I../../library/include -Wall -pedantic -ggdb3 -fno-rtti -fstack-check +LFLAGS = +LIBS = +OBJECTS = main.o Context.o TDB.o T.o Sequence.o Filter.o Att.o Date.o Duration.o Keymap.o + +all: $(PROJECT) + +install: $(PROJECT) + @echo unimplemented + +test: $(PROJECT) + @echo unimplemented + +clean: + -rm *.o $(PROJECT) + +.cpp.o: $(INCLUDE) + g++ -c $(CFLAGS) $< + +$(PROJECT): $(OBJECTS) + g++ $(OBJECTS) $(LFLAGS) $(LIBS) -o $(PROJECT) + diff --git a/src/rewrite/Record.cpp b/src/rewrite/Record.cpp new file mode 100644 index 000000000..c6a97feaf --- /dev/null +++ b/src/rewrite/Record.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Record.h" + +//////////////////////////////////////////////////////////////////////////////// +Record::Record () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Record::Record (const Record& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Record& Record::operator= (const Record& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Record::~Record () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Record.h b/src/rewrite/Record.h new file mode 100644 index 000000000..d2ea855d7 --- /dev/null +++ b/src/rewrite/Record.h @@ -0,0 +1,42 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_RECORD +#define INCLUDED_RECORD + +class Record +{ +public: + Record (); // Default constructor + Record (const Record&); // Copy constructor + Record& operator= (const Record&); // Assignment operator + ~Record (); // Destructor + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/Sequence.cpp b/src/rewrite/Sequence.cpp new file mode 100644 index 000000000..0a626e157 --- /dev/null +++ b/src/rewrite/Sequence.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "Sequence.h" + +//////////////////////////////////////////////////////////////////////////////// +Sequence::Sequence () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +Sequence::Sequence (const Sequence& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +Sequence& Sequence::operator= (const Sequence& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +Sequence::~Sequence () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/Sequence.h b/src/rewrite/Sequence.h new file mode 100644 index 000000000..f70912b39 --- /dev/null +++ b/src/rewrite/Sequence.h @@ -0,0 +1,42 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_SEQUENCE +#define INCLUDED_SEQUENCE + +class Sequence +{ +public: + Sequence (); // Default constructor + Sequence (const Sequence&); // Copy constructor + Sequence& operator= (const Sequence&); // Assignment operator + ~Sequence (); // Destructor + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/T.cpp b/src/rewrite/T.cpp new file mode 100644 index 000000000..9fe6bee95 --- /dev/null +++ b/src/rewrite/T.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "T.h" + +//////////////////////////////////////////////////////////////////////////////// +T::T () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +T::T (const T& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +T& T::operator= (const T& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +T::~T () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/T.h b/src/rewrite/T.h new file mode 100644 index 000000000..1ee4b8055 --- /dev/null +++ b/src/rewrite/T.h @@ -0,0 +1,49 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_T +#define INCLUDED_T + +class T +{ +public: + T (); // Default constructor + T (const T&); // Copy constructor + T& operator= (const T&); // Assignment operator + ~T (); // Destructor + +/* +T (const std::string&); +composeF4 +composeCSV +parse +*/ + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/TDB.cpp b/src/rewrite/TDB.cpp new file mode 100644 index 000000000..ec988693a --- /dev/null +++ b/src/rewrite/TDB.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "TDB.h" + +//////////////////////////////////////////////////////////////////////////////// +TDB::TDB () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +TDB::TDB (const TDB& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +TDB& TDB::operator= (const TDB& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +TDB::~TDB () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/TDB.h b/src/rewrite/TDB.h new file mode 100644 index 000000000..2fa604c2b --- /dev/null +++ b/src/rewrite/TDB.h @@ -0,0 +1,55 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_TDB +#define INCLUDED_TDB + +class TDB +{ +public: + TDB (); // Default constructor + TDB (const TDB&); // Copy constructor + TDB& operator= (const TDB&); // Assignment operator + ~TDB (); // Destructor + +/* +location (path to task dir) +std::vector load (filter) + caches all raw, including comments + +update (T& old, T& new) +commit () + writes all, including comments + +autoupgrade () + -> FF4 +*/ + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/X.cpp b/src/rewrite/X.cpp new file mode 100644 index 000000000..24688b1ef --- /dev/null +++ b/src/rewrite/X.cpp @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// + +#include "X.h" + +//////////////////////////////////////////////////////////////////////////////// +X::X () +{ +} + +//////////////////////////////////////////////////////////////////////////////// +X::X (const X& other) +{ +// mOne = other.mOne; +} + +//////////////////////////////////////////////////////////////////////////////// +X& X::operator= (const X& other) +{ + if (this != &other) + { +// mOne = other.mOne; + } + + return *this; +} + +//////////////////////////////////////////////////////////////////////////////// +X::~X () +{ +} + +//////////////////////////////////////////////////////////////////////////////// + diff --git a/src/rewrite/X.h b/src/rewrite/X.h new file mode 100644 index 000000000..95b9c6d0e --- /dev/null +++ b/src/rewrite/X.h @@ -0,0 +1,42 @@ +//////////////////////////////////////////////////////////////////////////////// +// task - a command line task list manager. +// +// Copyright 2006 - 2009, Paul Beckingham. +// All rights reserved. +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 2 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, write to the +// +// Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, +// Boston, MA +// 02110-1301 +// USA +// +//////////////////////////////////////////////////////////////////////////////// +#ifndef INCLUDED_X +#define INCLUDED_X + +class X +{ +public: + X (); // Default constructor + X (const X&); // Copy constructor + X& operator= (const X&); // Assignment operator + ~X (); // Destructor + +private: +}; + +#endif +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/rewrite/main.cpp b/src/rewrite/main.cpp new file mode 100644 index 000000000..493d11931 --- /dev/null +++ b/src/rewrite/main.cpp @@ -0,0 +1,23 @@ +//////////////////////////////////////////////////////////////////////////////// +#include "Context.h" + +int main (int argc, char** argv) +{ + try + { + Context c; + c.initialize (); + c.commandLine (argc, argv); + c.run (); + + return 0; + } + + catch (...) + { + } + + return -1; +} + +////////////////////////////////////////////////////////////////////////////////