[brlcad-commits] SF.net SVN: brlcad:[33324]
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <dav...@us...> - 2008-12-08 15:54:02
|
Revision: 33324 http://brlcad.svn.sourceforge.net/brlcad/?rev=33324&view=rev Author: davidloman Date: 2008-12-08 15:53:59 +0000 (Mon, 08 Dec 2008) Log Message: ----------- Changed header preprocessor directives so that they are NOT UUIDs anymore. Moved Header files to include/ directories. Renamed all file extensions from .cpp to .cxx per rt^3 standards. Added //Local Variables: blocks at the end of each file per rt^3 standards. Added Paths: ----------- rt^3/trunk/include/GeometryEngine/ rt^3/trunk/include/GeometryEngine/AbstractResource.h rt^3/trunk/include/GeometryEngine/AbstractResourceSource.h rt^3/trunk/include/GeometryEngine/BrlcadDbResource.h rt^3/trunk/include/GeometryEngine/CommandResult.h rt^3/trunk/include/GeometryEngine/GED.h rt^3/trunk/include/GeometryEngine/GeoCollection.h rt^3/trunk/include/GeometryEngine/GeoRegion.h rt^3/trunk/include/GeometryEngine/GeoSolid.h rt^3/trunk/include/GeometryEngine/GeometryEngine.h rt^3/trunk/include/GeometryEngine/NonGeo.h rt^3/trunk/include/GeometryEngine/ResourceCache.h rt^3/trunk/include/GeometryEngine/ResourceDiskLink.h rt^3/trunk/include/GeometryEngine/ResourceManager.h rt^3/trunk/include/GeometryEngine/ResourceManifest.h rt^3/trunk/include/GeometryEngine/ResourceSvnLink.h Copied: rt^3/trunk/include/GeometryEngine/AbstractResource.h (from rev 33315, rt^3/trunk/src/GeometryEngine/AbstractResource.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/AbstractResource.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/AbstractResource.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,43 @@ +/////////////////////////////////////////////////////////// +// AbstractResource.h +// Implementation of the Class DbObject +// Created on: 04-Dec-2008 8:26:39 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__ABSTRACTRESOURCE_H__) +#define __ABSTRACTRESOURCE_H__ + +class DbObject { + +public: + DbObject(); + virtual ~DbObject(); + + void DbObject(long id, string name, unsigned int geoType, bool locked = + false); + string getName(); + void setName(string name); + unsigned int getGeoType(); + void setGeoType(unsigned int geoType); + void lock(); + void unlock(); + +private: + std::string name; + UUID uuid; + std::list<DbObject&> parents; + std::list<DbObject&> children; + int geoType; + BrlcadDb& db_file; + +}; +#endif // !defined(__ABSTRACTRESOURCE_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/AbstractResourceSource.h (from rev 33315, rt^3/trunk/src/GeometryEngine/AbstractResourceSource.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/AbstractResourceSource.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/AbstractResourceSource.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,30 @@ +/////////////////////////////////////////////////////////// +// AbstractResourceSource.h +// Implementation of the Class AbstractDbObjectSource +// Created on: 04-Dec-2008 8:26:34 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__ABSTRACTRESOURCESOURCE_H__) +#define __ABSTRACTRESOURCESOURCE_H__ + +class AbstractDbObjectSource +{ + +public: + AbstractDbObjectSource(); + virtual ~AbstractDbObjectSource(); + + virtual DbObject& getDbObjectByURL(URL url); + bool putDbObject(DbObject& dbobj); + +}; +#endif // !defined(__ABSTRACTRESOURCESOURCE_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/BrlcadDbResource.h (from rev 33315, rt^3/trunk/src/GeometryEngine/BrlcadDbResource.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/BrlcadDbResource.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/BrlcadDbResource.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,45 @@ +/////////////////////////////////////////////////////////// +// BrlcadDbResource.h +// Implementation of the Class BrlcadDb +// Created on: 04-Dec-2008 8:26:36 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__BRLCADDBRESOURCE_H__) +#define __BRLCADDBRESOURCE_H__ + +#include "AbstractResource.h" + +class BrlcadDb: public DbObject { + +public: + BrlcadDb(); + virtual ~BrlcadDb(); + + virtual DbObject& getDbObjectByObjectName(std::string name); + virtual DbObject& getDbObjectByUUID(UUID uuid); + +private: + /** + * The title of this BRL-CAD db + */ + std::string dbTitle; + /** + * Directory of BRL-CAD object names and their offset into the BRL-CAD db + */ + Map<std::string, long> fileIndex; + /** + * Directory of BRL-CAD object names and their offset into the BRL-CAD db + */ + Map<std::string, DbObject&> nameMap; + +}; +#endif // !defined(__BRLCADDBRESOURCE_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/CommandResult.h (from rev 33315, rt^3/trunk/src/GeometryEngine/CommandResult.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/CommandResult.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/CommandResult.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,31 @@ +/////////////////////////////////////////////////////////// +// CommandResult.h +// Implementation of the Class CommandResult +// Created on: 04-Dec-2008 8:26:37 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__COMMANDRESULT_H__) +#define __COMMANDRESULT_H__ + +class CommandResult { + +public: + CommandResult(); + virtual ~CommandResult(); + + void CommandResult(int resVal); + int getCommandResult(); + +private: + int ResultValue; + +}; +#endif // !defined(__COMMANDRESULT_H__) +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/GED.h (from rev 33315, rt^3/trunk/src/GeometryEngine/GED.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/GED.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/GED.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////// +// GED.h +// Implementation of the Class GED +// Created on: 04-Dec-2008 8:26:40 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__GED_H__) +#define __GED_H__ + +/** + * Static Class, or Singleton Class. Explore the possibility of having multiple + * Geometry Engines Running.... will that be of ANY benefit? + */ +class GED { + +public: + GED(); + virtual ~GED(); + +}; +#endif // !defined(__GED_H__) +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/GeoCollection.h (from rev 33315, rt^3/trunk/src/GeometryEngine/GeoCollection.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/GeoCollection.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/GeoCollection.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////// +// GeoCollection.h +// Implementation of the Class GeoCollection +// Created on: 04-Dec-2008 8:26:41 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__GEOCOLLECTION_H__) +#define __GEOCOLLECTION_H__ + +#include "AbstractResource.h" + +class GeoCollection : public DbObject +{ + +public: + GeoCollection(); + virtual ~GeoCollection(); + +}; +#endif // !defined(__GEOCOLLECTION_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/GeoRegion.h (from rev 33315, rt^3/trunk/src/GeometryEngine/GeoRegion.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/GeoRegion.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/GeoRegion.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////// +// GeoRegion.h +// Implementation of the Class GeoRegion +// Created on: 04-Dec-2008 8:26:42 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__GEOREGION_H__) +#define __GEOREGION_H__ + +#include "GeoCollection.h" + +class GeoRegion : public GeoCollection +{ + +public: + GeoRegion(); + virtual ~GeoRegion(); + +}; +#endif // !defined(__GEOREGION_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/GeoSolid.h (from rev 33315, rt^3/trunk/src/GeometryEngine/GeoSolid.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/GeoSolid.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/GeoSolid.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,27 @@ +/////////////////////////////////////////////////////////// +// GeoSolid.h +// Implementation of the Class GeoSolid +// Created on: 04-Dec-2008 8:26:42 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__GEOSOLID_H__) +#define __GEOSOLID_H__ + +#include "AbstractResource.h" + +class GeoSolid: public DbObject { + +public: + GeoSolid(); + virtual ~GeoSolid(); + +}; +#endif // !defined(__GEOSOLID_H__) +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/GeometryEngine.h (from rev 33315, rt^3/trunk/src/GeometryEngine/GeometryEngine.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/GeometryEngine.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/GeometryEngine.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,37 @@ +/////////////////////////////////////////////////////////// +// GeometryEngine.h +// Implementation of the Class GeometryEngine +// Created on: 04-Dec-2008 8:26:41 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__GEOMETRYENGINE_H__) +#define __GEOMETRYENGINE_H__ + +#include "GED.h" +#include "ResourceManager.h" + +/** + * Singleton Class. + * Will contain all Geometric Processing functions to include: Format Converters, + * Tessilation, SVN access, IMG processors. + */ +class GeometryEngine +{ + +public: + GeometryEngine(); + virtual ~GeometryEngine(); + GED *m_GED; + DbObjectManager *m_DbObjectManager; + +}; +#endif // !defined(__GEOMETRYENGINE_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/NonGeo.h (from rev 33315, rt^3/trunk/src/GeometryEngine/NonGeo.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/NonGeo.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/NonGeo.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,27 @@ +/////////////////////////////////////////////////////////// +// NonGeo.h +// Implementation of the Class NonGeo +// Created on: 04-Dec-2008 8:26:46 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__NONGEO_H__) +#define __NONGEO_H__ + +#include "AbstractResource.h" + +class NonGeo: public DbObject { + +public: + NonGeo(); + virtual ~NonGeo(); + +}; +#endif // !defined(__NONGEO_H__) +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/ResourceCache.h (from rev 33315, rt^3/trunk/src/GeometryEngine/ResourceCache.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/ResourceCache.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/ResourceCache.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,41 @@ +/////////////////////////////////////////////////////////// +// ResourceCache.h +// Implementation of the Class DbObjectCache +// Created on: 04-Dec-2008 8:26:39 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__RESOURCECACHE_H__) +#define __RESOURCECACHE_H__ + +#include "AbstractResourceSource.h" +#include "AbstractResource.h" + +class DbObjectCache : public AbstractDbObjectSource +{ + +public: + DbObjectCache(); + virtual ~DbObjectCache(); + DbObject *m_DbObject; + + virtual DbObject& getDbObjectByURL(URL url); + bool addDbObject(DbObject& ar); + bool putDbObject(DbObject& res); + +private: + std::set <DbObject&> DbObjectCacheSet; + std::map <URL, DbObject&> URLDbObjectMap; + std::map <UUID, DbObject&> UUIDDbObjectMap; + std::map <DbObject&, AbstractDbObjectSource&> DbObjectOriginMap; + +}; +#endif // !defined(__RESOURCECACHE_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/ResourceDiskLink.h (from rev 33315, rt^3/trunk/src/GeometryEngine/ResourceDiskLink.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/ResourceDiskLink.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/ResourceDiskLink.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,32 @@ +/////////////////////////////////////////////////////////// +// ResourceDiskLink.h +// Implementation of the Class SourceDiskLink +// Created on: 04-Dec-2008 8:26:48 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__RESOURCEDISKLINK_H__) +#define __RESOURCEDISKLINK_H__ + +#include "AbstractResourceSource.h" + +class SourceDiskLink : public AbstractDbObjectSource +{ + +public: + SourceDiskLink(); + virtual ~SourceDiskLink(); + + virtual DbObject& getDbObjectByURL(URL url); + bool putDbObject(DbObject& dbobj); + +}; +#endif // !defined(__RESOURCEDISKLINK_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/ResourceManager.h (from rev 33315, rt^3/trunk/src/GeometryEngine/ResourceManager.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/ResourceManager.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/ResourceManager.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,34 @@ +/////////////////////////////////////////////////////////// +// ResourceManager.h +// Implementation of the Class DbObjectManager +// Created on: 04-Dec-2008 8:26:40 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__RESOURCEMANAGER_H__) +#define __RESOURCEMANAGER_H__ + +#include "AbstractResourceSource.h" + +class DbObjectManager { + +public: + DbObjectManager(); + virtual ~DbObjectManager(); + AbstractDbObjectSource *m_AbstractDbObjectSource; + + DbObject& getDbObjectByURL(URL url); + DbObject& getDbObjectByUUID(UUID uuid); + +private: + std::list <AbstractDbObjectSource&> DbObjectSources; + +}; +#endif // !defined(__RESOURCEMANAGER_H__) +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/ResourceManifest.h (from rev 33315, rt^3/trunk/src/GeometryEngine/ResourceManifest.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/ResourceManifest.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/ResourceManifest.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,31 @@ +/////////////////////////////////////////////////////////// +// ResourceManifest.h +// Implementation of the Class DbObjectManifest +// Created on: 04-Dec-2008 8:26:40 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__RESOURCEMANIFEST_H__) +#define __RESOURCEMANIFEST_H__ + +class DbObjectManifest +{ + +public: + DbObjectManifest(); + virtual ~DbObjectManifest(); + +private: + std::list<UUID> DbObjectList; + std::map<UUID, DbObject& > DbObjectMap; + +}; +#endif // !defined(__RESOURCEMANIFEST_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 Copied: rt^3/trunk/include/GeometryEngine/ResourceSvnLink.h (from rev 33315, rt^3/trunk/src/GeometryEngine/ResourceSvnLink.h) =================================================================== --- rt^3/trunk/include/GeometryEngine/ResourceSvnLink.h (rev 0) +++ rt^3/trunk/include/GeometryEngine/ResourceSvnLink.h 2008-12-08 15:53:59 UTC (rev 33324) @@ -0,0 +1,32 @@ +/////////////////////////////////////////////////////////// +// ResourceSvnLink.h +// Implementation of the Class SourceSvnLink +// Created on: 04-Dec-2008 8:26:48 AM +// Original author: Dave Loman +/////////////////////////////////////////////////////////// + +#if !defined(__RESOURCESVNLINK_H__) +#define __RESOURCESVNLINK_H__ + +#include "AbstractResourceSource.h" + +class SourceSvnLink : public AbstractDbObjectSource +{ + +public: + SourceSvnLink(); + virtual ~SourceSvnLink(); + + virtual DbObject& getDbObjectByURL(URL url); + bool putDbObject(DbObject& dbobj); + +}; +#endif // !defined(__RESOURCESVNLINK_H__) + +// Local Variables: *** +// mode: C++ *** +// tab-width: 8 *** +// c-basic-offset: 2 *** +// indent-tabs-mode: t *** +// End: *** +// ex: shiftwidth=2 tabstop=8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |