BRL-CAD
|
#include "common.h"
#include "bu/avs.h"
#include "bu/ptbl.h"
#include "bn/tol.h"
#include "rt/defines.h"
#include "rt/db_instance.h"
Go to the source code of this file.
Data Structures | |
struct | diff_avp |
struct | diff_result |
Macros | |
#define | DIFF_EMPTY 0 |
#define | DIFF_UNCHANGED 1 |
#define | DIFF_REMOVED 2 |
#define | DIFF_ADDED 4 |
#define | DIFF_CHANGED 8 |
#define | DIFF_CONFLICT 16 |
Enumerations | |
enum | db_compare_criteria_t { DB_COMPARE_ALL =0x00 , DB_COMPARE_PARAM =0x01 , DB_COMPARE_ATTRS =0x02 } |
Diff interface for comparing geometry.
Definition in file db_diff.h.
#define DIFF_EMPTY 0 |
|
extern |
|
extern |
|
extern |
Compare two attribute sets.
This function is useful for comparing the contents of two attribute/value sets.
|
extern |
Compare three attribute sets.
|
extern |
Compare two database objects.
This function is useful for comparing two geometry objects and inspecting their differences. Differences are recorded in key=value form based on whether there is a difference added in the right, removed in the right, changed going from left to right, or unchanged.
The flags parameter is a bitfield specifying what type of comparisons to perform. The default is to compare everything and report on any differences encountered.
The same bu_attribute_value_set container may be passed to any of the provided containers to aggregate results. NULL may be passed to not inspect or record information for that type of comparison.
Returns an int with bit flags set according to the above four diff categories.
Negative returns indicate an error.
|
extern |
Compare three database objects.
The flags parameter is a bitfield specifying what type of comparisons to perform. The default is to compare everything and report on any differences encountered.
The same bu_attribute_value_set container may be passed to any of the provided containers to aggregate results. NULL may be passed to not inspect or record information for that type of comparison.
Returns an int with bit flags set according to the above diff3 categories.
Negative returns indicate an error.
|
extern |
Compare two database instances.
All objects in dbip_left are compared against the objects in dbip_right. Every object results in one of four callback functions getting called. Any objects in dbip_right but not in dbip_left cause add_func() to get called. Any objects in dbip_left but not in dbip_right cause del_func() to get called. Objects existing in both (i.e., with the same name) but differing in some fashion cause chgd_func() to get called. If the object exists in both but is unchanged, unch_func() is called. NULL may be passed to skip any callback.
Returns an int with bit flags set according to the above four diff categories.
Negative returns indicate an error.
|
extern |
Compare three database instances.
This does a "3-way" diff to identify changes in the left and right databases relative to the ancestor database, and provides functional hooks for the various cases.
Returns an int with bit flags set according to the above diff3 categories.
Negative returns indicate an error.