![]() |
Junction Diagram Automation Suite 1.5.1
An AutoCAD 2024 plugin for the manipulation and generation of junction box wiring diagrams
|
Parses and manages IO and cable data from an Excel file. More...
#include <IOList.h>
Public Member Functions | |
IOList (std::string xlPath) | |
Construct a new IOList from a path to an Excel file. | |
~IOList () | |
Destroy the IOList object. | |
std::vector< std::string > | GetTags () const |
Returns all parsed junction box tags. | |
JBox * | GetJBox (std::string junctionTag) const |
Returns a pointer to the JBox corresponding to a given tag. | |
JBox * | GetJBox (int index) const |
Returns a pointer to the JBox at the specified index. | |
int | GetNumJBoxes () const |
Returns the number of junction boxes in this list. |
Parses and manages IO and cable data from an Excel file.
The IOList class reads an Excel workbook containing IO list and cable schedule data, extracts unique junction tags, and builds a list of JBox objects with their corresponding cables and devices.
IOList::IOList | ( | std::string | xlPath | ) |
Construct a new IOList from a path to an Excel file.
Opens and validates the specified Excel file, then loads all junction box tags and builds the corresponding JBox objects.
xlPath | Path to the Excel file. |
std::exception | If the file couldn't be opened. |
std::runtime_error | If the Excel file is an invalid IOList or has missing data. |
IOList::~IOList | ( | ) |
JBox * IOList::GetJBox | ( | int | index | ) | const |
JBox * IOList::GetJBox | ( | std::string | junctionTag | ) | const |
int IOList::GetNumJBoxes | ( | ) | const |
Returns the number of junction boxes in this list.
std::vector< std::string > IOList::GetTags | ( | ) | const |
Returns all parsed junction box tags.