Initial instance
This commit is contained in:
commit
48e1c48579
65 files changed
+6233
No files matched your search
@@ -0,0 +1,6 @@
|
||||
#include "connectioninstance.h"
|
||||
|
||||
ConnectionInstance::ConnectionInstance()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef DOMAIN_SCHEMA_CONNECTIONINSTANCE_H
|
||||
#define DOMAIN_SCHEMA_CONNECTIONINSTANCE_H
|
||||
|
||||
#include "instance.h"
|
||||
#include "wireinstance.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class ConnectionInstance: AstNode
|
||||
{
|
||||
Instance *instance;
|
||||
std::string pin;
|
||||
Instance *bus;
|
||||
WireInstance *wireInstance;
|
||||
|
||||
std::vector<InstanceAttribute> attributes;
|
||||
|
||||
public:
|
||||
ConnectionInstance();
|
||||
};
|
||||
|
||||
#endif // DOMAIN_SCHEMA_CONNECTIONINSTANCE_H
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "instance.h"
|
||||
|
||||
Instance::Instance()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef DOMAIN_SCHEMA_INSTANCE_H
|
||||
#define DOMAIN_SCHEMA_INSTANCE_H
|
||||
|
||||
#include "instanceattribute.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class Instance: AstNode
|
||||
{
|
||||
std::string name;
|
||||
std::string component;
|
||||
|
||||
std::pair<int, int> position;
|
||||
std::vector<InstanceAttribute> attributes;
|
||||
|
||||
int size;
|
||||
|
||||
public:
|
||||
Instance();
|
||||
};
|
||||
|
||||
#endif // DOMAIN_SCHEMA_INSTANCE_H
|
||||
@@ -0,0 +1,5 @@
|
||||
#include "instanceattribute.h"
|
||||
|
||||
InstanceAttribute::InstanceAttribute()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef DOMAIN_SCHEMA_ATTRIBUTE_H
|
||||
#define DOMAIN_SCHEMA_ATTRIBUTE_H
|
||||
|
||||
#include <domain/library/value.h>
|
||||
|
||||
class InstanceAttribute: AstNode
|
||||
{
|
||||
std::string name;
|
||||
Value value;
|
||||
public:
|
||||
InstanceAttribute();
|
||||
};
|
||||
|
||||
#endif // DOMAIN_SCHEMA_ATTRIBUTE_H
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "schema.h"
|
||||
|
||||
Schema::Schema()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef DOMAIN_SCHEMA_SCHEMA_H
|
||||
#define DOMAIN_SCHEMA_SCHEMA_H
|
||||
|
||||
#include "connectioninstance.h"
|
||||
#include "instance.h"
|
||||
#include "wireinstance.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Schema: AstNode
|
||||
{
|
||||
std::vector<Instance> instances;
|
||||
std::vector<WireInstance> wires;
|
||||
std::vector<ConnectionInstance> connections;
|
||||
public:
|
||||
Schema();
|
||||
};
|
||||
|
||||
#endif // DOMAIN_SCHEMA_SCHEMA_H
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "wireinstance.h"
|
||||
|
||||
WireInstance::WireInstance()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef DOMAIN_SCHEMA_WIREINSTANCE_H
|
||||
#define DOMAIN_SCHEMA_WIREINSTANCE_H
|
||||
|
||||
#include <string>
|
||||
#include <domain/display/display.h>
|
||||
#include <comdel/parser/astnode.h>
|
||||
|
||||
class WireInstance: AstNode
|
||||
{
|
||||
std::string name;
|
||||
std::pair<int, int> position;
|
||||
Display display;
|
||||
|
||||
public:
|
||||
WireInstance();
|
||||
};
|
||||
|
||||
#endif // DOMAIN_SCHEMA_WIREINSTANCE_H
|
||||
Reference in new issue
Block a user