blob: 85d96741f147cf0a622c5de59aab2f79265ff635 [file] [log] [blame]
/**
*
* 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.
*/
#pragma once
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "agent/agent_docs.h"
#include "core/ClassLoader.h"
#include "core/expect.h"
#include "minifi-cpp/core/Property.h"
#include "core/Relationship.h"
#include "core/Processor.h"
#include "minifi-cpp/core/Annotation.h"
#include "io/validation.h"
#include "minifi-cpp/agent/build_description.h"
namespace org::apache::nifi::minifi {
class BuildDescription {
public:
Components getClassDescriptions(const std::string& group = "minifi-system") {
if (class_mappings_[group].empty() && AgentDocs::getClassDescriptions().contains(group)) {
class_mappings_[group] = AgentDocs::getClassDescriptions().at(group);
}
return class_mappings_[group];
}
private:
std::map<std::string, Components> class_mappings_;
};
} // namespace org::apache::nifi::minifi