Revision: 40849
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40849&view=rev
Author:   davidloman
Date:     2010-09-29 18:11:25 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Flesh out the generic parts of DbObject for now.

Modified Paths:
--------------
    rt^3/trunk/include/DbObject.h
    rt^3/trunk/src/GS/DbObject.cxx

Modified: rt^3/trunk/include/DbObject.h
===================================================================
--- rt^3/trunk/include/DbObject.h       2010-09-29 18:02:07 UTC (rev 40848)
+++ rt^3/trunk/include/DbObject.h       2010-09-29 18:11:25 UTC (rev 40849)
@@ -27,10 +27,24 @@
 #ifndef DBOBJECT_H_
 #define DBOBJECT_H_
 
+#include <QtCore/QString>
+#include <QtCore/QUuid>
+#include <QtCore/QByteArray>
+
 class DbObject {
 public:
-       DbObject();
+       DbObject(QString path, QByteArray* data);
+       DbObject(QUuid id, QByteArray* data);
        virtual ~DbObject();
+
+       QString getPath();
+       QUuid getID();
+       QByteArray* getData();
+
+private:
+       QString path;
+       QUuid id;
+       QByteArray* data;
 };
 
 #endif /* DBOBJECT_H_ */

Modified: rt^3/trunk/src/GS/DbObject.cxx
===================================================================
--- rt^3/trunk/src/GS/DbObject.cxx      2010-09-29 18:02:07 UTC (rev 40848)
+++ rt^3/trunk/src/GS/DbObject.cxx      2010-09-29 18:11:25 UTC (rev 40849)
@@ -26,15 +26,35 @@
 
 #include "DbObject.h"
 
-DbObject::DbObject() {
-       // TODO Auto-generated constructor stub
+DbObject::DbObject(QString path, QByteArray* data) : path(path), id(NULL), 
data(data)
+{
+}
 
+DbObject::DbObject(QUuid id, QByteArray* data) : path(""), id(id), data(data)
+{
 }
 
 DbObject::~DbObject() {
-       // TODO Auto-generated destructor stub
 }
 
+QString
+DbObject::getPath()
+{
+       return this->path;
+}
+
+QUuid
+DbObject::getID()
+{
+       return this->id;
+}
+
+QByteArray*
+DbObject::getData()
+{
+       return this->data;
+}
+
 // Local Variables:
 // tab-width: 8
 // mode: C++


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

Reply via email to