Program Listing for File map-manager-config.h

Return to documentation for file (common/maplab-common/include/maplab-common/map-manager-config.h)

#ifndef MAPLAB_COMMON_MAP_MANAGER_CONFIG_H_
#define MAPLAB_COMMON_MAP_MANAGER_CONFIG_H_

#include <string>

namespace backend {

struct SaveConfig {
  SaveConfig() {}

  enum class MigrateResourcesSettings {
    kDontMigrateResourceFolder,

    kMigrateResourcesToMapFolder,

    kMigrateResourcesToExternalFolder
  };

  bool overwrite_existing_files = false;

  MigrateResourcesSettings migrate_resources_settings =
      MigrateResourcesSettings::kDontMigrateResourceFolder;

  std::string external_folder_for_migration = "";

  bool move_resources_when_migrating = false;

  static constexpr size_t kVerticesPerProtoFile = 200u;
  static constexpr size_t kEdgesPerProtoFile = 30000u;
};

static_assert(SaveConfig::kVerticesPerProtoFile > 0u, "");
static_assert(SaveConfig::kEdgesPerProtoFile > 0u, "");

}  // namespace backend

#endif  // MAPLAB_COMMON_MAP_MANAGER_CONFIG_H_