![]() |
Junction Diagram Automation Suite 1.2.0
An AutoCAD 2024 plugin for the manipulation and generation of junction box wiring diagrams
|
Represents a device within the Junction Diagram Automation Suite. More...
#include <Device.h>
Public Member Functions | |
Device (std::string combinedTag, int footprint) | |
Construct a Device object with combined tag and footprint. | |
void | draw (AcGePoint3d origin, bool flip) const |
Draw the device starting from a given origin. | |
std::string | getTag () const |
Retrieve the device's tag. | |
std::string | getNumber () const |
Retrieve the device's number or identifier. | |
std::string | getCombinedTag () const |
Retrieve the combined tag and number for the device. | |
int | getTerminalFootprint () const |
Get the terminal footprint of the device. | |
bool | operator< (const Device &rhs) const |
Compare this device with another based on their combined tags. |
Static Public Member Functions | |
static int | footprintFromCells (const std::string &combinedTag, const std::string &instrumentSpec) |
Calculate and return the footprint from a combined tag and instrument specification. |
Represents a device within the Junction Diagram Automation Suite.
The Device class encapsulates information about a device, including its tag, number, and footprint characteristics. It provides methods to retrieve these details as well as utility functions for processing device data.
Device::Device | ( | std::string | combinedTag, |
int | footprint ) |
Construct a Device object with combined tag and footprint.
combinedTag | A string that combines both tag and number (e.g., "R123"). |
footprint | The footprint value representing the number of terminals. |
void Device::draw | ( | AcGePoint3d | origin, |
bool | flip ) const |
Draw the device starting from a given origin.
origin | The starting point for drawing. |
flip | Direction of the device. true if the cable should be drawn to the right instead of to the left, false otherwise. |
|
static |
Calculate and return the footprint from a combined tag and instrument specification.
combinedTag | A string that combines both tag and number (e.g., "LSLL 100A"). |
instrumentSpec | Additional specification of the instrument (e.g., "ULTRASONICE SW"). |
std::string Device::getCombinedTag | ( | ) | const |
Retrieve the combined tag and number for the device.
std::string Device::getNumber | ( | ) | const |
Retrieve the device's number or identifier.
std::string Device::getTag | ( | ) | const |
Retrieve the device's tag.
int Device::getTerminalFootprint | ( | ) | const |
Get the terminal footprint of the device.
bool Device::operator< | ( | const Device & | rhs | ) | const |
Compare this device with another based on their combined tags.
rhs | Right-hand side Device object for comparison. |