ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::core::SurveySyncReport Struct Reference

Counts of what sync_survey changed. More...

#include <survey_service.hpp>

Collaboration diagram for reusex::core::SurveySyncReport:

Public Attributes

std::size_t types_created = 0
std::size_t parts_created = 0
std::size_t parts_existing = 0
std::size_t parts_dismissed = 0
 Instances skipped because the user deleted their part (tombstoned in survey_dismissed_instances, schema v26).
std::size_t instances_seen = 0
 Instance rows considered: parts_created + parts_existing + parts_dismissed.
std::size_t instances_backfilled = 0
 Instance rows sync wrote first because the cloud had labels but no instances rows: a cloud from before schema v10, whose migration only backfilled clouds that had material links.
bool rooms_assigned = false
std::size_t parts_orphaned = 0
 Parts whose instance_guid no longer resolves to an instance row (the instance was dropped, or re-created without carrying the guid over).
std::vector< std::string > orphaned_codes
std::size_t links_restored = 0
 Instance links put back: instance-backed parts that own a passport (survey_parts.passport_guid) but whose instance had lost its instance_materials row — rux create instances re-runs cascade-delete them.

Detailed Description

Counts of what sync_survey changed.

Definition at line 66 of file survey_service.hpp.

Member Data Documentation

◆ instances_backfilled

std::size_t reusex::core::SurveySyncReport::instances_backfilled = 0

Instance rows sync wrote first because the cloud had labels but no instances rows: a cloud from before schema v10, whose migration only backfilled clouds that had material links.

Definition at line 80 of file survey_service.hpp.

◆ instances_seen

std::size_t reusex::core::SurveySyncReport::instances_seen = 0

Instance rows considered: parts_created + parts_existing + parts_dismissed.

Zero means the instance cloud holds no instances, as opposed to "all already surveyed".

Definition at line 76 of file survey_service.hpp.

◆ links_restored

std::size_t reusex::core::SurveySyncReport::links_restored = 0

Instance links put back: instance-backed parts that own a passport (survey_parts.passport_guid) but whose instance had lost its instance_materials row — rux create instances re-runs cascade-delete them.

A link to a different passport is never overwritten (warned).

Definition at line 92 of file survey_service.hpp.

◆ orphaned_codes

std::vector<std::string> reusex::core::SurveySyncReport::orphaned_codes

Definition at line 87 of file survey_service.hpp.

◆ parts_created

std::size_t reusex::core::SurveySyncReport::parts_created = 0

Definition at line 68 of file survey_service.hpp.

◆ parts_dismissed

std::size_t reusex::core::SurveySyncReport::parts_dismissed = 0

Instances skipped because the user deleted their part (tombstoned in survey_dismissed_instances, schema v26).

Definition at line 72 of file survey_service.hpp.

◆ parts_existing

std::size_t reusex::core::SurveySyncReport::parts_existing = 0

Definition at line 69 of file survey_service.hpp.

◆ parts_orphaned

std::size_t reusex::core::SurveySyncReport::parts_orphaned = 0

Parts whose instance_guid no longer resolves to an instance row (the instance was dropped, or re-created without carrying the guid over).

Kept and still counted toward their type's quantity — review or re-file them; sync_survey does not delete or hide them.

Definition at line 86 of file survey_service.hpp.

◆ rooms_assigned

bool reusex::core::SurveySyncReport::rooms_assigned = false

Definition at line 81 of file survey_service.hpp.

◆ types_created

std::size_t reusex::core::SurveySyncReport::types_created = 0

Definition at line 67 of file survey_service.hpp.


The documentation for this struct was generated from the following file: