NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
PAHdb Class Reference

Public Types

enum class  Database : char { Theory , Experiment , Anharmonic }
 

Public Member Functions

void connect (std::string_view database, const std::string_view host, std::string_view username, const std::string_view password, int port, bool compress, int timeout, const std::string_view socket)
 
void setTable (Database table)
 
void setProgress (double progress)
 
void setError (const char *error)
 
std::vector< std::vector< std::pair< double, double > > > getTransitionsFromUIDsAndVersion (const std::vector< int > &uids, int version)
 
std::vector< std::vector< std::pair< double, double > > > getTransitionsFromUIDAndVersion (int uid, int version)
 
std::vector< std::vector< std::pair< double, double > > > getTransitionsFromVersion (int version, std::vector< int > &ids)
 
std::vector< std::vector< std::pair< double, double > > > getTransitionsFromIds (const std::vector< int > &ids)
 
std::vector< std::vector< std::pair< double, double > > > getTransitionsFromId (int id)
 
std::vector< std::vector< std::pair< double, double > > > getExperimentalAndTheoreticalTransitionsFromId (int id)
 
std::vector< PAHGeometrygetGeometriesFromIds (const std::vector< int > &ids)
 
std::vector< sql_properties > getPropertiesByUIDsAndVersion (const std::vector< int > &uids, int version)
 
std::vector< sql_properties > getPropertiesByIDs (const std::vector< int > &ids)
 
std::vector< std::string > getFormulaeFromIds (const std::vector< int > &ids)
 

Detailed Description

Definition at line 29 of file PAHdb.h.

Member Enumeration Documentation

◆ Database

enum class PAHdb::Database : char
strong

Definition at line 34 of file PAHdb.h.

Member Function Documentation

◆ connect()

void PAHdb::connect ( std::string_view  database = "",
const std::string_view  host = "",
std::string_view  username = "",
const std::string_view  password = "",
int  port = 0,
bool  compress = false,
int  timeout = 0,
const std::string_view  socket = "" 
)

Definition at line 3 of file PAHdb.cpp.

◆ getExperimentalAndTheoreticalTransitionsFromId()

std::vector< std::vector< std::pair< double, double > > > PAHdb::getExperimentalAndTheoreticalTransitionsFromId ( int  id)

Definition at line 175 of file PAHdb.cpp.

◆ getFormulaeFromIds()

std::vector< std::string > PAHdb::getFormulaeFromIds ( const std::vector< int > &  ids)

Definition at line 404 of file PAHdb.cpp.

◆ getGeometriesFromIds()

std::vector< PAHGeometry > PAHdb::getGeometriesFromIds ( const std::vector< int > &  ids)

Definition at line 340 of file PAHdb.cpp.

◆ getPropertiesByIDs()

std::vector< sql_properties > PAHdb::getPropertiesByIDs ( const std::vector< int > &  ids)

Definition at line 505 of file PAHdb.cpp.

◆ getPropertiesByUIDsAndVersion()

std::vector< sql_properties > PAHdb::getPropertiesByUIDsAndVersion ( const std::vector< int > &  uids,
int  version 
)

Definition at line 462 of file PAHdb.cpp.

◆ getTransitionsFromId()

std::vector< std::vector< std::pair< double, double > > > PAHdb::getTransitionsFromId ( int  id)
inline

Definition at line 83 of file PAHdb.h.

◆ getTransitionsFromIds()

std::vector< std::vector< std::pair< double, double > > > PAHdb::getTransitionsFromIds ( const std::vector< int > &  ids)

Definition at line 123 of file PAHdb.cpp.

◆ getTransitionsFromUIDAndVersion()

std::vector< std::vector< std::pair< double, double > > > PAHdb::getTransitionsFromUIDAndVersion ( int  uid,
int  version 
)
inline

Definition at line 88 of file PAHdb.h.

◆ getTransitionsFromUIDsAndVersion()

std::vector< std::vector< std::pair< double, double > > > PAHdb::getTransitionsFromUIDsAndVersion ( const std::vector< int > &  uids,
int  version 
)

Definition at line 20 of file PAHdb.cpp.

◆ getTransitionsFromVersion()

std::vector< std::vector< std::pair< double, double > > > PAHdb::getTransitionsFromVersion ( int  version,
std::vector< int > &  ids 
)

Definition at line 79 of file PAHdb.cpp.

◆ setError()

void PAHdb::setError ( const char *  error)

Definition at line 593 of file PAHdb.cpp.

◆ setProgress()

void PAHdb::setProgress ( double  progress)

Definition at line 570 of file PAHdb.cpp.

◆ setTable()

void PAHdb::setTable ( Database  table)
inline

Definition at line 80 of file PAHdb.h.


The documentation for this class was generated from the following files:

Since FY2019 the NASA Ames PAH IR Spectroscopic Database is being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics - The NASA Ames PAH IR Spectroscopic Database".
Since FY2023 the NASA Ames PAH IR Spectroscopic Database is being supported through the Laboratory Astrophysics Rd 2 directed Work Package at NASA Ames.
© Copyright 2021-2025, Christiaan Boersma