KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_IO_DATABASE::CONNECTION_RESULT Struct Reference

A connection built from settings, or the reason none could be built. More...

#include <sch_io_database.h>

Public Attributes

std::unique_ptr< DATABASE_CONNECTION > connection
 Null when no backend exists for the source type.
 
DB_FAILURE failure = DB_FAILURE::UNKNOWN
 Why connection is null.
 
std::string error
 The message naming the problem when connection is null.
 

Detailed Description

A connection built from settings, or the reason none could be built.

Definition at line 120 of file sch_io_database.h.

Member Data Documentation

◆ connection

std::unique_ptr<DATABASE_CONNECTION> SCH_IO_DATABASE::CONNECTION_RESULT::connection

Null when no backend exists for the source type.

Definition at line 123 of file sch_io_database.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), DIALOG_DATABASE_LIB_SETTINGS::connect(), and SCH_IO_DATABASE::connectOnce().

◆ error

std::string SCH_IO_DATABASE::CONNECTION_RESULT::error

The message naming the problem when connection is null.

Definition at line 129 of file sch_io_database.h.

Referenced by DIALOG_DATABASE_LIB_SETTINGS::connect(), and SCH_IO_DATABASE::connectOnce().

◆ failure

DB_FAILURE SCH_IO_DATABASE::CONNECTION_RESULT::failure = DB_FAILURE::UNKNOWN

Why connection is null.

Definition at line 126 of file sch_io_database.h.

Referenced by DIALOG_DATABASE_LIB_SETTINGS::connect(), and SCH_IO_DATABASE::connectOnce().


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