schema_editor/comdel/domain/schema.h

29 lines
717 B
C
Raw Normal View History

2022-04-05 21:48:07 +00:00
#ifndef DOMAIN_SCHEMA_H
#define DOMAIN_SCHEMA_H
2022-05-27 06:18:17 +00:00
#include "connection_instance.h"
2022-04-05 21:48:07 +00:00
#include "instance.h"
#include <vector>
namespace domain {
2022-05-27 06:18:17 +00:00
class Schema {
public:
Schema() = default;
std::vector<shared_ptr<BusInstance>> busInstances;
std::vector<shared_ptr<ComponentInstance>> componentInstances;
std::vector<shared_ptr<ConnectionInstance>> connections;
BusInstance *getBusInstance(std::string &name);
ComponentInstance *getComponentInstance(std::string &name);
bool hasConnection(string &component, string &pin);
ConnectionInstance *getConnection(string &component, string &pin);
};
2022-04-05 21:48:07 +00:00
} // namespace domain
#endif // DOMAIN_SCHEMA_H