blob: 834526fbc59934ef9201bddb8663579aa0195110 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors
//
// Licensed 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.
#ifndef COBALT_CONFIG_REPORT_CONFIG_H_
#define COBALT_CONFIG_REPORT_CONFIG_H_
#include "config/config.h"
#include "config/report_configs.pb.h"
namespace cobalt {
namespace config {
// A container for all of the ReportConfigs registered in Cobalt. This
// is used only on the Analyzer.
typedef Registry<RegisteredReports> ReportRegistry;
typedef ReportRegistry::RegistryIterator ReportIterator;
// For ease of understanding we specify the interfaces below as if
// ReportRegistry were not a template specialization but a
// stand-alone class.
/*
class ReportRegistry {
public:
// Returns the number of Reports in this registry.
size_t size();
// Returns the ReportConfig with the given ID triple, or nullptr if there is
// no such ReportConfig. The caller does not take ownership of the returned
// pointer.
const ReportConfig* const Get(uint32_t customer_id,
uint32_t project_id,
uint32_t id);
// Provide a mechansim to iterate through all reports.
ReportIterator begin();
ReportIterator end();
};
*/
} // namespace config
} // namespace cobalt
#endif // COBALT_CONFIG_REPORT_CONFIG_H_