ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/MediaFile.cpp
(Generate patch)

Comparing DecentralizedMedia/MediaFile.cpp (file contents):
Revision 541 by douglas, 2005-07-02T18:26:58-07:00 vs.
Revision 542 by douglas, 2005-07-03T00:31:07-07:00

# Line 10 | Line 10
10  
11   #include "MediaFile.hpp"
12  
13 < MediaFile::MediaFile(_R<dbi::Connection>& connection, const api::Path& path) : connection(connection), path(path)
13 > MediaFile::MediaFile(const _R<dbi::Connection>& connection, const api::Path& path) : connection(connection), path(path)
14   {
15          _R<dbi::ResultSet> info(connection->Parse(_B("SELECT artist, title, album, genre FROM files WHERE path = ?"))->Execute(path.GetPath()));
16  
# Line 21 | Line 21 | MediaFile::MediaFile(_R<dbi::Connection>
21                  album = info->GetString(_B("album"));
22                  genre = info->GetString(_B("genre"));
23          }
24 <        else
25 <                throw;
24 >        /*else
25 >                throw;*/
26   }
27  
28 < MediaFile::MediaFile(_R<dbi::Connection>& connection, const api::Path& path, const cse::String& artist, const cse::String& title, const cse::String& album, const cse::String& genre, const api::Path& root) : connection(connection), path(path), artist(artist), title(title), album(album), genre(genre)
28 > MediaFile::MediaFile(const _R<dbi::Connection>& connection, const api::Path& path, const cse::String& artist, const cse::String& title, const cse::String& album, const cse::String& genre, const api::Path& root) : connection(connection), path(path), artist(artist), title(title), album(album), genre(genre)
29   {
30          _R<dbi::ResultSet> path_(connection->Parse(_B("SELECT path FROM files WHERE path = ?"))->Execute(path.GetPath()));
31  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines