KiCad PCB EDA Suite
Loading...
Searching...
No Matches
OdbFeatureFile Class Reference

#include <odb_test_utils.h>

Public Member Functions

 OdbFeatureFile (const std::filesystem::path &aFile)
 
size_t CountRecordsWithOption (const std::string &aName, const std::string &aOption) const
 
size_t CountRecordsWithFlag (const std::string &aName) const
 
size_t CountRecordsWithInteger (const std::string &aName, int aValue) const
 

Private Member Functions

size_t CountRecordsWithValue (const std::string &aName, const std::string &aValue) const
 

Private Attributes

std::map< std::string, std::string > m_names
 
std::vector< std::string > m_records
 

Detailed Description

Definition at line 79 of file odb_test_utils.h.

Constructor & Destructor Documentation

◆ OdbFeatureFile()

OdbFeatureFile::OdbFeatureFile ( const std::filesystem::path & aFile)
explicit

Definition at line 97 of file odb_test_utils.cpp.

References m_names, m_records, and ReadLines().

Member Function Documentation

◆ CountRecordsWithFlag()

size_t OdbFeatureFile::CountRecordsWithFlag ( const std::string & aName) const

Definition at line 143 of file odb_test_utils.cpp.

References CountRecordsWithValue().

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ CountRecordsWithInteger()

size_t OdbFeatureFile::CountRecordsWithInteger ( const std::string & aName,
int aValue ) const

Definition at line 149 of file odb_test_utils.cpp.

References CountRecordsWithValue().

Referenced by BOOST_AUTO_TEST_CASE().

◆ CountRecordsWithOption()

size_t OdbFeatureFile::CountRecordsWithOption ( const std::string & aName,
const std::string & aOption ) const

◆ CountRecordsWithValue()

size_t OdbFeatureFile::CountRecordsWithValue ( const std::string & aName,
const std::string & aValue ) const
private

Definition at line 155 of file odb_test_utils.cpp.

References m_names, m_records, and name.

Referenced by CountRecordsWithFlag(), CountRecordsWithInteger(), and CountRecordsWithOption().

Member Data Documentation

◆ m_names

std::map<std::string, std::string> OdbFeatureFile::m_names
private

Definition at line 91 of file odb_test_utils.h.

Referenced by CountRecordsWithValue(), and OdbFeatureFile().

◆ m_records

std::vector<std::string> OdbFeatureFile::m_records
private

Definition at line 92 of file odb_test_utils.h.

Referenced by CountRecordsWithValue(), and OdbFeatureFile().


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