Revision: 56836
http://sourceforge.net/p/brlcad/code/56836
Author: starseeker
Date: 2013-08-14 13:25:15 +0000 (Wed, 14 Aug 2013)
Log Message:
-----------
revert r56811
Revision Links:
--------------
http://sourceforge.net/p/brlcad/code/56811
Modified Paths:
--------------
brlcad/trunk/include/CMakeLists.txt
brlcad/trunk/include/raytrace.h
Removed Paths:
-------------
brlcad/trunk/include/raytrace_deprecated_db_search.h
Modified: brlcad/trunk/include/CMakeLists.txt
===================================================================
--- brlcad/trunk/include/CMakeLists.txt 2013-08-14 07:32:15 UTC (rev 56835)
+++ brlcad/trunk/include/CMakeLists.txt 2013-08-14 13:25:15 UTC (rev 56836)
@@ -8,7 +8,6 @@
magic.h
pstdint.h
raytrace.h
- raytrace_deprecated_db_search.h
rt/defines.h
rtfunc.h
rtgeom.h
Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h 2013-08-14 07:32:15 UTC (rev 56835)
+++ brlcad/trunk/include/raytrace.h 2013-08-14 13:25:15 UTC (rev 56836)
@@ -3651,11 +3651,101 @@
RT_EXPORT extern int db_full_path_search(const struct db_full_path *a,
const struct directory *dp);
+/**
+ * search the database using a supplied list of filter criteria.
+ * db_search_full_paths returns a bu_list of db_full_path structs to
+ * instances of objects matching the filter criteria. Note that this is
+ * a full path tree search of the entire database, not just the toplevel
+ * objects that would be reported by the ls command. E.g., a
+ * database with the following objects:
+ *
+ * r1 r2
+ * | |
+ * s1 s1
+ *
+ * would, if searched from the top level for s1, return both
+ *
+ * /r1/s1
+ *
+ * and
+ *
+ * /r2/s1
+ *
+ * instead of just s1. To iterate over the results, see examples of
+ * iterating over bu_list structures. (Bear in mind the db_full_path
+ * structures in the list are individually malloced.)
+ *
+ * To return only unique objects, use
+ * db_search_unique_objects, which would return just
+ *
+ * s1
+ *
+ * in the above example. db_search_unique_objects returns a bu_ptbl of
+ * (struct directory *) pointers. To iterate over this list use
+ * BU_PTBL_LEN to get the size of the table and BU_PTBL_GET in a for
+ * loop to access each element.
+ *
+ */
-/* Include the following until the old search API has been properly deprecated
*/
-#include "raytrace_deprecated_db_search.h"
+/* search.c */
+struct db_full_path_list {
+ struct bu_list l;
+ struct db_full_path *path;
+ int local;
+};
+
/**
+ * Add an object to the db_full_path_list based on its database object name
+ */
+RT_EXPORT extern int db_full_path_list_add(const char *path, int local, struct
db_i *dbip, struct db_full_path_list *path_list);
+
+/**
+ * Free all entries and the list of a db_full_path_list
+ */
+RT_EXPORT extern void db_free_full_path_list(struct db_full_path_list
*path_list);
+
+/**
+ * Low level command to process the command line and create a "plan"
corresponding to the
+ * command arguments.
+ */
+RT_EXPORT extern void *db_search_formplan(char **argv,
+ struct db_i *dbip,
+ struct rt_wdb *wdbp);
+
+/**
+ * release memory for the formulated plan returned by
+ * db_search_formplan().
+ */
+RT_EXPORT extern void db_search_freeplan(void **plan);
+
+/**
+ * Low level routines for invocation of search plans
+ */
+RT_EXPORT extern struct db_full_path_list *db_search_full_paths(void
*searchplan,
+ struct
db_full_path_list *path_list,
+ struct db_i
*dbip,
+ struct rt_wdb
*wdbp);
+
+RT_EXPORT extern struct bu_ptbl *db_search_unique_objects(void *searchplan,
+ struct
db_full_path_list *path_list,
+ struct db_i *dbip,
+ struct rt_wdb *wdbp);
+
+/**
+ * Use the string form of a search plan to build and execute a search
+ */
+RT_EXPORT extern struct db_full_path_list *db_search_full_paths_strplan(const
char *plan_string,
+ struct
db_full_path_list *path_list,
+ struct db_i
*dbip,
+ struct rt_wdb
*wdbp);
+
+RT_EXPORT extern struct bu_ptbl *db_search_unique_objects_strplan(const char
*plan_string,
+ struct
db_full_path_list *path_list,
+ struct db_i *dbip,
+ struct rt_wdb *wdbp);
+
+/**
* TODO: PROPOSED API for search functionality
*
* This is the proposed replacement to all of the preceding search
functionality -
@@ -3713,7 +3803,6 @@
struct rt_wdb *wdbp,
int search_type);
-
/* db_open.c */
/**
* D B _ S Y N C
Deleted: brlcad/trunk/include/raytrace_deprecated_db_search.h
===================================================================
--- brlcad/trunk/include/raytrace_deprecated_db_search.h 2013-08-14
07:32:15 UTC (rev 56835)
+++ brlcad/trunk/include/raytrace_deprecated_db_search.h 2013-08-14
13:25:15 UTC (rev 56836)
@@ -1,98 +0,0 @@
-/* Deprecated search API, included by raytrace.h until time to remove it */
-
-
-/**
- * search the database using a supplied list of filter criteria.
- * db_search_full_paths returns a bu_list of db_full_path structs to
- * instances of objects matching the filter criteria. Note that this is
- * a full path tree search of the entire database, not just the toplevel
- * objects that would be reported by the ls command. E.g., a
- * database with the following objects:
- *
- * r1 r2
- * | |
- * s1 s1
- *
- * would, if searched from the top level for s1, return both
- *
- * /r1/s1
- *
- * and
- *
- * /r2/s1
- *
- * instead of just s1. To iterate over the results, see examples of
- * iterating over bu_list structures. (Bear in mind the db_full_path
- * structures in the list are individually malloced.)
- *
- * To return only unique objects, use
- * db_search_unique_objects, which would return just
- *
- * s1
- *
- * in the above example. db_search_unique_objects returns a bu_ptbl of
- * (struct directory *) pointers. To iterate over this list use
- * BU_PTBL_LEN to get the size of the table and BU_PTBL_GET in a for
- * loop to access each element.
- *
- */
-
-/* search.c */
-
-struct db_full_path_list {
- struct bu_list l;
- struct db_full_path *path;
- int local;
-};
-
-/**
- * Add an object to the db_full_path_list based on its database object name
- */
-RT_EXPORT extern int db_full_path_list_add(const char *path, int local, struct
db_i *dbip, struct db_full_path_list *path_list);
-
-/**
- * Free all entries and the list of a db_full_path_list
- */
-RT_EXPORT extern void db_free_full_path_list(struct db_full_path_list
*path_list);
-
-/**
- * Low level command to process the command line and create a "plan"
corresponding to the
- * command arguments.
- */
-RT_EXPORT extern void *db_search_formplan(char **argv,
- struct db_i *dbip,
- struct rt_wdb *wdbp);
-
-/**
- * release memory for the formulated plan returned by
- * db_search_formplan().
- */
-RT_EXPORT extern void db_search_freeplan(void **plan);
-
-/**
- * Low level routines for invocation of search plans
- */
-RT_EXPORT extern struct db_full_path_list *db_search_full_paths(void
*searchplan,
- struct
db_full_path_list *path_list,
- struct db_i
*dbip,
- struct rt_wdb
*wdbp);
-
-RT_EXPORT extern struct bu_ptbl *db_search_unique_objects(void *searchplan,
- struct
db_full_path_list *path_list,
- struct db_i *dbip,
- struct rt_wdb *wdbp);
-
-/**
- * Use the string form of a search plan to build and execute a search
- */
-RT_EXPORT extern struct db_full_path_list *db_search_full_paths_strplan(const
char *plan_string,
- struct
db_full_path_list *path_list,
- struct db_i
*dbip,
- struct rt_wdb
*wdbp);
-
-RT_EXPORT extern struct bu_ptbl *db_search_unique_objects_strplan(const char
*plan_string,
- struct
db_full_path_list *path_list,
- struct db_i *dbip,
- struct rt_wdb *wdbp);
-
-
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits