From 91100673c8b5ac833e8f27685091de76110516d8 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Sun, 15 Nov 2020 06:12:53 +0000 Subject: [PATCH] Added basic Value types --- .../Verbs/Value/ValueFactory.cs | 9 ++++- .../Verbs/Value/ValueTypes/BoolValue.cs | 34 +++++++++++++++++++ .../Verbs/Value/ValueTypes/BytesValue.cs | 34 +++++++++++++++++++ .../Verbs/Value/ValueTypes/ColorValue.cs | 34 +++++++++++++++++++ .../Verbs/Value/ValueTypes/DoubleValue.cs | 34 +++++++++++++++++++ .../Verbs/Value/ValueTypes/IntValue.cs | 34 +++++++++++++++++++ 6 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BoolValue.cs create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BytesValue.cs create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/ColorValue.cs create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/DoubleValue.cs create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/IntValue.cs diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueFactory.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueFactory.cs index 5e51918..7cea167 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueFactory.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueFactory.cs @@ -1,4 +1,11 @@ -namespace Advanced_Software_Engineering.Verbs.Value { +using System; + +namespace Advanced_Software_Engineering.Verbs.Value { class ValueFactory { + + ValueFactory(string value, Type TypeHint = null) { + + } + } } diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BoolValue.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BoolValue.cs new file mode 100644 index 0000000..5c6e263 --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BoolValue.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes { + class BoolValue : IValue { + public string GetDescription() { + throw new NotImplementedException(); + } + + public Type GetOriginalType() { + throw new NotImplementedException(); + } + + public bool ToBool() { + throw new NotImplementedException(); + } + + public Color ToColor() { + throw new NotImplementedException(); + } + + public double ToDouble() { + throw new NotImplementedException(); + } + + public int ToInt() { + throw new NotImplementedException(); + } + } +} diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BytesValue.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BytesValue.cs new file mode 100644 index 0000000..ea27254 --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/BytesValue.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes { + class BytesValue : IValue { + public string GetDescription() { + throw new NotImplementedException(); + } + + public Type GetOriginalType() { + throw new NotImplementedException(); + } + + public bool ToBool() { + throw new NotImplementedException(); + } + + public Color ToColor() { + throw new NotImplementedException(); + } + + public double ToDouble() { + throw new NotImplementedException(); + } + + public int ToInt() { + throw new NotImplementedException(); + } + } +} diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/ColorValue.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/ColorValue.cs new file mode 100644 index 0000000..26c63af --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/ColorValue.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes { + class ColorValue : IValue { + public string GetDescription() { + throw new NotImplementedException(); + } + + public Type GetOriginalType() { + throw new NotImplementedException(); + } + + public bool ToBool() { + throw new NotImplementedException(); + } + + public Color ToColor() { + throw new NotImplementedException(); + } + + public double ToDouble() { + throw new NotImplementedException(); + } + + public int ToInt() { + throw new NotImplementedException(); + } + } +} diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/DoubleValue.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/DoubleValue.cs new file mode 100644 index 0000000..2ff66a8 --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/DoubleValue.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes { + class DoubleValue : IValue { + public string GetDescription() { + throw new NotImplementedException(); + } + + public Type GetOriginalType() { + throw new NotImplementedException(); + } + + public bool ToBool() { + throw new NotImplementedException(); + } + + public Color ToColor() { + throw new NotImplementedException(); + } + + public double ToDouble() { + throw new NotImplementedException(); + } + + public int ToInt() { + throw new NotImplementedException(); + } + } +} diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/IntValue.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/IntValue.cs new file mode 100644 index 0000000..5ac03f3 --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Value/ValueTypes/IntValue.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes { + class IntValue : IValue { + public string GetDescription() { + throw new NotImplementedException(); + } + + public Type GetOriginalType() { + throw new NotImplementedException(); + } + + public bool ToBool() { + throw new NotImplementedException(); + } + + public Color ToColor() { + throw new NotImplementedException(); + } + + public double ToDouble() { + throw new NotImplementedException(); + } + + public int ToInt() { + throw new NotImplementedException(); + } + } +}