schema_editor/comdel/domain/connection.h

38 lines
829 B
C
Raw Normal View History

2022-03-31 21:20:41 +00:00
#ifndef DOMAIN_CONNECTION_H
#define DOMAIN_CONNECTION_H
#include "attribute.h"
#include <string>
#include <vector>
namespace domain {
class Connection
{
std::string component;
std::string pin;
std::string bus;
std::vector<Attribute> attributes;
std::vector<Value> wires;
public:
Connection(std::string component, std::string pin, std::string bus, std::vector<Attribute> attributes, std::vector<Value> wires);
bool isConnecting(std::string component, std::string pin, std::string bus);
std::string getComponent();
std::string getPin();
std::string getBus();
std::vector<Attribute> getAttributes();
std::vector<Value> getWires();
Attribute getAttribute(std::string name);
2022-04-05 21:48:07 +00:00
bool hasAttribute(std::string name);
2022-03-31 21:20:41 +00:00
};
} // namespace domain
#endif // DOMAIN_CONNECTION_H