/usr/include/musicbrainz3/factory.h is in libmusicbrainz3-dev 3.0.2-2.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | /*
* MusicBrainz -- The Internet music metadatabase
*
* Copyright (C) 2006 Lukas Lalinsky
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* $Id: factory.h 9218 2007-06-25 20:11:09Z luks $
*/
#ifndef __MUSICBRAINZ3_FACTORY_H__
#define __MUSICBRAINZ3_FACTORY_H__
#include <musicbrainz3/model.h>
namespace MusicBrainz
{
/**
* A factory to instantiate classes from the domain model.
*/
class MB_API IFactory
{
public:
virtual ~IFactory() {};
virtual Artist *newArtist() = 0;
virtual ArtistAlias *newArtistAlias() = 0;
virtual Disc *newDisc() = 0;
virtual Track *newTrack() = 0;
virtual Relation *newRelation() = 0;
virtual Release *newRelease() = 0;
virtual ReleaseEvent *newReleaseEvent() = 0;
virtual User *newUser() = 0;
virtual Tag *newTag() = 0;
virtual Label *newLabel() = 0;
virtual LabelAlias *newLabelAlias() = 0;
};
/**
* A factory to instantiate classes from the domain model.
*
* This factory may be used to create objects from musicbrainz3/model.h
*/
class MB_API DefaultFactory : public IFactory
{
public:
virtual Artist *newArtist() { return new Artist(); };
virtual ArtistAlias *newArtistAlias() { return new ArtistAlias(); };
virtual Disc *newDisc() { return new Disc(); };
virtual Track *newTrack() { return new Track(); };
virtual Relation *newRelation() { return new Relation(); };
virtual Release *newRelease() { return new Release(); };
virtual ReleaseEvent *newReleaseEvent() { return new ReleaseEvent(); };
virtual User *newUser() { return new User(); };
virtual Tag *newTag() { return new Tag(); };
virtual Label *newLabel() { return new Label(); };
virtual LabelAlias *newLabelAlias() { return new LabelAlias(); };
};
}
#endif
|