Enhancement - Location object

- Moved Location object into place, ready for integration.
This commit is contained in:
Paul Beckingham 2009-05-27 00:00:54 -04:00
parent 2dc566a726
commit de08c1d32e
5 changed files with 11 additions and 10 deletions

View file

@ -1,9 +1,9 @@
bin_PROGRAMS = task bin_PROGRAMS = task
task_SOURCES = Config.cpp Date.cpp Record.cpp T.cpp TDB.cpp Att.cpp Mod.cpp \ task_SOURCES = Config.cpp Date.cpp Record.cpp T.cpp TDB.cpp Att.cpp Mod.cpp \
Filter.cpp Sequence.cpp Table.cpp Grid.cpp Timer.cpp \ Filter.cpp Sequence.cpp Table.cpp Grid.cpp Timer.cpp \
Duration.cpp StringTable.cpp color.cpp parse.cpp task.cpp \ Duration.cpp StringTable.cpp Location.cpp color.cpp parse.cpp \
command.cpp edit.cpp report.cpp util.cpp text.cpp rules.cpp \ task.cpp command.cpp edit.cpp report.cpp util.cpp text.cpp \
import.cpp Config.h Date.h Record.h T.h TDB.h Att.h Mod.h \ rules.cpp import.cpp Config.h Date.h Record.h T.h TDB.h Att.h \
Filter.h Sequence.h Table.h Grid.h Timer.h Duration.h \ Mod.h Filter.h Sequence.h Table.h Grid.h Timer.h Duration.h \
StringTable.h color.h task.h StringTable.h Location.h color.h task.h

View file

@ -60,16 +60,17 @@ Record::~Record ()
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// The format is:
//
// [ Att::composeF4 ... ] \n
//
std::string Record::composeF4 () std::string Record::composeF4 ()
{ {
std::string ff4 = "["; std::string ff4 = "[";
bool first = true; bool first = true;
foreach (r, (*this)) foreach (r, (*this))
{ ff4 += (first ? "" : " ") + r->second.composeF4 ();
ff4 += (first ? "" : " ");
ff4 += r->second.composeF4 ();
}
ff4 += "]"; ff4 += "]";
return ff4; return ff4;

View file

@ -4,7 +4,7 @@ LFLAGS =
LIBS = LIBS =
OBJECTS = main.o Context.o TDB.o T.o ../Sequence.o ../Filter.o ../Att.o \ OBJECTS = main.o Context.o TDB.o T.o ../Sequence.o ../Filter.o ../Att.o \
Keymap.o ../Record.o ../Mod.o ../StringTable.o ../util.o ../text.o \ Keymap.o ../Record.o ../Mod.o ../StringTable.o ../util.o ../text.o \
../Date.o ../Config.o Location.o ../Date.o ../Config.o ../Location.o
all: $(PROJECT) all: $(PROJECT)