From f384fdc3a9e4acccac2e4d322676e34115a168f7 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 4 Jun 2024 12:13:52 +0200 Subject: WIP meer nadenk --- docs/Parser.h | 16 ++++++++++++++++ docs/class-diag.puml | 20 ++++++++++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 docs/Parser.h (limited to 'docs') diff --git a/docs/Parser.h b/docs/Parser.h new file mode 100644 index 0000000..a7c90e9 --- /dev/null +++ b/docs/Parser.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include + +using std::ostream; + +class Parser { + + friend void operator >> (Parser& p, std::istream& filestream) { + // cout assigned to another object mycout + std::cout << "the file contains:\n" << filestream << std::endl; + mycout << "Value of dx and dy are \n"; + mycout << d.dx << " " << d.dy; + } +} diff --git a/docs/class-diag.puml b/docs/class-diag.puml index 85cb721..ea245cd 100644 --- a/docs/class-diag.puml +++ b/docs/class-diag.puml @@ -1,12 +1,13 @@ @startuml abstract class Node { /' (also ConcreteObserver) '/ - + label: string - + type: string - + addOutput(Net*) + + setOutput(Net*) + addInput(Net*) - inputs: Net*[] - - outputs: Net*[] + - output: Net* + - type: static constexpr const string + - minInputs: constexpr unsigned int + - maxInputs: constexpr int } class Net { /' (also ConcreteSubject) '/ - level: SignalLevel @@ -62,5 +63,16 @@ class CircuitFactory { + configure() } +class Circuit { + + createNode(string type, string label) + + createLink(string labelA, string labelB) + + - nets: Map + - nodes: Map +} + +CircuitFactory -[dashed]> Node +CircuitFactory <-[dashed]- Node + @enduml -- cgit v1.2.3