Revision: 40847
http://brlcad.svn.sourceforge.net/brlcad/?rev=40847&view=rev
Author: davidloman
Date: 2010-09-29 18:00:28 +0000 (Wed, 29 Sep 2010)
Log Message:
-----------
Stub in the DataSource interface.
Added Paths:
-----------
rt^3/trunk/include/IDataSource.h
Added: rt^3/trunk/include/IDataSource.h
===================================================================
--- rt^3/trunk/include/IDataSource.h (rev 0)
+++ rt^3/trunk/include/IDataSource.h 2010-09-29 18:00:28 UTC (rev 40847)
@@ -0,0 +1,55 @@
+/* I D A T A S O U R C E . H
+ * BRL-CAD
+ *
+ * Copyright (c) 2010 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * 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 file; see the file named COPYING for more
+ * information.
+ */
+/** @file IDataSource.h
+ *
+ * Interface. Defines the required methods needed
+ * to be a DataSource for the DataManager.
+ *
+ */
+
+#ifndef __IDATASOURCE_H__
+#define __IDATASOURCE_H__
+
+#include "DbObject.h"
+#include "Account.h"
+
+class IDataSource {
+public:
+
+ virtual bool lock(DbObject* obj, Account* a) = 0;
+ virtual bool hasLock(DbObject* obj, Account* a) = 0;
+ virtual bool unlock(DbObject* obj) = 0;
+
+ virtual DbObject* getByPath(QString path) = 0;
+ virtual DbObject* getByID(QUuid id) = 0;
+
+
+
+};
+
+#endif /* __IDATASOURCE_H__ */
+
+// Local Variables: ***
+// mode: C++ ***
+// tab-width: 8 ***
+// c-basic-offset: 2 ***
+// indent-tabs-mode: t ***
+// End: ***
+// ex: shiftwidth=2 tabstop=8
Property changes on: rt^3/trunk/include/IDataSource.h
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Revision Date Author
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits