ocarina/lib/database.cpp
Anna Schumaker 81f3ef458f database: Each DatabaseEntry should know its id
This will let me set up a Track class that has pointers to the
corresponding artist, album and genre information without needing to
know their IDs directly.  Having this information available means I
won't need to keep a "join struct" when doing lookups - instead I can
return a pointer to a Track class that already knows everything.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:57:06 -04:00

11 lines
136 B
C++

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#include <database.h>
DatabaseEntry :: DatabaseEntry()
: valid(false), id(0)
{
}