From e585c425b8884df95a1fa0d714b34d87acb0f29e Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 11 Apr 2022 19:13:25 -0400 Subject: [PATCH] provide a way to annotate DataFormats that are incomplete --- .../DataFormatImplementationStatus.cs | 32 ++++++++++++++++++ .../ImplementationStatusAttribute.cs | 33 +++++++++++++++++++ .../UniversalEditor.Core.csproj | 2 ++ 3 files changed, 67 insertions(+) create mode 100644 Libraries/UniversalEditor.Core/DataFormatImplementationStatus.cs create mode 100644 Libraries/UniversalEditor.Core/ImplementationStatusAttribute.cs diff --git a/Libraries/UniversalEditor.Core/DataFormatImplementationStatus.cs b/Libraries/UniversalEditor.Core/DataFormatImplementationStatus.cs new file mode 100644 index 00000000..35332152 --- /dev/null +++ b/Libraries/UniversalEditor.Core/DataFormatImplementationStatus.cs @@ -0,0 +1,32 @@ +// +// DataFormatImplementationStatus.cs +// +// Author: +// Michael Becker +// +// Copyright (c) 2022 Mike Becker's Software +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +using System; +namespace UniversalEditor +{ + public enum DataFormatImplementationStatus + { + None = 0, + Incomplete = -1, + Load = 1, + Save = 2, + Complete = 3 + } +} diff --git a/Libraries/UniversalEditor.Core/ImplementationStatusAttribute.cs b/Libraries/UniversalEditor.Core/ImplementationStatusAttribute.cs new file mode 100644 index 00000000..7da8558e --- /dev/null +++ b/Libraries/UniversalEditor.Core/ImplementationStatusAttribute.cs @@ -0,0 +1,33 @@ +// +// Implementationstatus.cs +// +// Author: +// Michael Becker +// +// Copyright (c) 2022 Mike Becker's Software +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +using System; +namespace UniversalEditor +{ + public class ImplementationStatusAttribute : Attribute + { + private DataFormatImplementationStatus _dfStatus = DataFormatImplementationStatus.None; + + public ImplementationStatusAttribute(DataFormatImplementationStatus status) + { + _dfStatus = status; + } + } +} diff --git a/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj b/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj index 020f4c42..d4a0e241 100644 --- a/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj +++ b/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj @@ -101,6 +101,8 @@ + +