mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
FF4 - Snapshot
- Objects ready for implementation. - Removed template X.h X.cpp.
This commit is contained in:
parent
69ed1e0ebb
commit
7a03d819a0
12 changed files with 47 additions and 147 deletions
|
@ -38,7 +38,7 @@ Att::Att ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Att::Att (const std::string& name, const std::string& value)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::Att");
|
||||
mName = name;
|
||||
mValue = value;
|
||||
|
||||
|
@ -47,7 +47,7 @@ Att::Att (const std::string& name, const std::string& value)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Att::Att (const Att& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::Att");
|
||||
mName = other.mName;
|
||||
mValue = other.mValue;
|
||||
mMods = other.mMods;
|
||||
|
@ -56,7 +56,7 @@ Att::Att (const Att& other)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Att& Att::operator= (const Att& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mName = other.mName;
|
||||
|
@ -77,20 +77,20 @@ Att::~Att ()
|
|||
// name [[.mod] ...] : [value]
|
||||
void Att::parse (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::parse");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Att::composeF4 () const
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::composeF4");
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Att::addMod (const std::string&)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::addMod");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -120,34 +120,34 @@ void Att::value (const std::string& value)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int Att::value_int () const
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::value_int");
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Att::value_int (int)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::value_int");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Att::filter () const
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented filter");
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Att::required () const
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::required");
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Att::internal () const
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Att::internal");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ Context::Context ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Context::Context (const Context& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Context::Context");
|
||||
// config = other.config;
|
||||
filter = other.filter;
|
||||
keymap = other.keymap;
|
||||
|
@ -47,7 +47,7 @@ Context::Context (const Context& other)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Context& Context::operator= (const Context& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Context::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
// config = other.config;
|
||||
|
@ -69,7 +69,7 @@ Context::~Context ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Context::initialize ()
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Context::initialize");
|
||||
// TODO Load config.
|
||||
// TODO Load pending.data.
|
||||
// TODO Load completed.data.
|
||||
|
@ -79,7 +79,7 @@ void Context::initialize ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int Context::commandLine (int argc, char** argv)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Context::commandLine");
|
||||
// TODO Support rc: override.
|
||||
return 0;
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ int Context::commandLine (int argc, char** argv)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int Context::run ()
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Context::run");
|
||||
// TODO Dispatch to command handlers.
|
||||
// TODO Auto shadow update.
|
||||
// TODO Auto gc.
|
||||
|
|
|
@ -35,14 +35,14 @@ Date::Date ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Date::Date (const Date& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Date::Date");
|
||||
mTime = other.mTime;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Date& Date::operator= (const Date& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Date::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mTime = other.mTime;
|
||||
|
@ -63,7 +63,7 @@ Date::~Date ()
|
|||
// TODO Relative dates (today, tomorrow, yesterday, +1d, -2w, eow, eom, eoy)
|
||||
void Date::parse (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Date::parse");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -36,14 +36,14 @@ Duration::Duration ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration::Duration (const Duration& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Duration::Duration");
|
||||
mSeconds = other.mSeconds;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration& Duration::operator= (const Duration& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Duration::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mSeconds = other.mSeconds;
|
||||
|
@ -60,7 +60,7 @@ Duration::~Duration ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Duration::parse (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Duration::parse");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -35,14 +35,14 @@ Filter::Filter ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Filter::Filter (const Filter& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Filter::Filter");
|
||||
mAtts = other.mAtts;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Filter& Filter::operator= (const Filter& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Filter::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mAtts = other.mAtts;
|
||||
|
@ -59,14 +59,14 @@ Filter::~Filter ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Filter::add (Att& att)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Filter::add");
|
||||
mAtts.push_back (att);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Filter::pass (T&)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Filter::pass");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,14 +36,14 @@ Keymap::Keymap ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Keymap::Keymap (const Keymap& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Keymap::Keymap");
|
||||
// mOne = other.mOne;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Keymap& Keymap::operator= (const Keymap& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Keymap::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
// mOne = other.mOne;
|
||||
|
@ -60,7 +60,7 @@ Keymap::~Keymap ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Keymap::load (const std::string& file)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Keymap::load");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -35,14 +35,14 @@ Record::Record ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Record::Record (const Record& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Record::Record");
|
||||
mAtts = other.mAtts;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Record& Record::operator= (const Record& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Record:operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mAtts = other.mAtts;
|
||||
|
|
|
@ -36,14 +36,14 @@ Sequence::Sequence ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
Sequence::Sequence (const Sequence& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Sequence::Sequence");
|
||||
mSequence = other.mSequence;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Sequence& Sequence::operator= (const Sequence& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Sequence::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mSequence = other.mSequence;
|
||||
|
@ -60,7 +60,7 @@ Sequence::~Sequence ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Sequence::parse (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented Sequence::parse");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -36,20 +36,20 @@ T::T ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
T::T (const T& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented T::T");
|
||||
// mOne = other.mOne;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
T::T (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented T::T");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
T& T::operator= (const T& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented T::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
// mOne = other.mOne;
|
||||
|
@ -66,21 +66,21 @@ T::~T ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string T::composeF4 ()
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented T::composeF4");
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string T::composeCSV ()
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented T::composeCSV");
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void T::parse (const std::string& input)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented T::parse");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -36,14 +36,14 @@ TDB::TDB ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
TDB::TDB (const TDB& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::TDB");
|
||||
mLocations = other.mLocations;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
TDB& TDB::operator= (const TDB& other)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mLocations = other.mLocations;
|
||||
|
@ -60,7 +60,7 @@ TDB::~TDB ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void TDB::location (const std::string& path)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::location");
|
||||
mLocations.push_back (path);
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ void TDB::location (const std::string& path)
|
|||
// TODO Returns number of filtered tasks.
|
||||
int TDB::load (std::vector <T>& tasks, Filter& filter)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::load");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -76,21 +76,21 @@ int TDB::load (std::vector <T>& tasks, Filter& filter)
|
|||
// TODO Write to transaction log.
|
||||
void TDB::update (T& before, T& after)
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::update");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO writes all, including comments
|
||||
int TDB::commit ()
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::commit");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO -> FF4
|
||||
void TDB::upgrade ()
|
||||
{
|
||||
throw std::string ("unimplemented");
|
||||
throw std::string ("unimplemented TDB::upgrade");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,58 +0,0 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// 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 ()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// 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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
Loading…
Add table
Add a link
Reference in a new issue