You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2025/03/14 09:28:32 UTC
(nifi-minifi-cpp) 11/15: PropertyType.h refactors
This is an automated email from the ASF dual-hosted git repository.
martinzink pushed a commit to branch minifi-api-property
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit 5cc90f1c11217bb00d610ee284e3dfa94da696c5
Author: Martin Zink <ma...@apache.org>
AuthorDate: Wed Mar 12 13:22:55 2025 +0100
PropertyType.h refactors
---
utils/include/core/PropertyType.h | 26 ++------------------------
utils/src/core/PropertyType.cpp | 22 ----------------------
2 files changed, 2 insertions(+), 46 deletions(-)
diff --git a/utils/include/core/PropertyType.h b/utils/include/core/PropertyType.h
index a2c2b0b01..9c327cbe2 100644
--- a/utils/include/core/PropertyType.h
+++ b/utils/include/core/PropertyType.h
@@ -16,18 +16,9 @@
*/
#pragma once
-#include <limits>
-#include <memory>
-#include <string>
-#include <utility>
#include <minifi-cpp/core/PropertyValidator.h>
-#include "utils/StringUtils.h"
-
-namespace org::apache::nifi::minifi::core {
-
-
-namespace StandardPropertyTypes {
+namespace org::apache::nifi::minifi::core::StandardPropertyTypes {
inline constexpr auto ALWAYS_VALID_VALIDATOR = AlwaysValidValidator{};
inline constexpr auto NON_BLANK_VALIDATOR = NonBlankValidator{};
@@ -38,17 +29,4 @@ inline constexpr auto UNSIGNED_INTEGER_VALIDATOR = UnsignedIntegerValidator{};
inline constexpr auto DATA_SIZE_VALIDATOR = DataSizeValidator{};
inline constexpr auto PORT_VALIDATOR = PortValidator{};
-
-enum class PropertyTypeCode : int64_t {
- INTEGER = 0,
- LONG = 1,
- BOOLEAN = 2,
- DATA_SIZE = 3,
- TIME_PERIOD = 4,
- NON_BLANK = 5,
- PORT = 6
-};
-
-} // namespace StandardPropertyTypes
-
-} // namespace org::apache::nifi::minifi::core
+} // namespace org::apache::nifi::minifi::core::StandardPropertyTypes
\ No newline at end of file
diff --git a/utils/src/core/PropertyType.cpp b/utils/src/core/PropertyType.cpp
deleted file mode 100644
index 3890780e8..000000000
--- a/utils/src/core/PropertyType.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "core/PropertyType.h"
-
-namespace org::apache::nifi::minifi::core {
-
-} // namespace org::apache::nifi::minifi::core