#include "FWCore/Framework/interface/OutputModule.h"
#include "DataFormats/Provenance/interface/BranchDescription.h"
#include "DataFormats/Provenance/interface/EntryDescriptionRegistry.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ConstProductRegistry.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Framework/interface/TriggerNamesService.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventPrincipal.h"
#include "FWCore/Utilities/interface/DebugMacros.h"
#include "FWCore/Framework/interface/CurrentProcessingContext.h"
#include "FWCore/Framework/src/CPCSentry.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
Go to the source code of this file.
Namespaces | |
namespace | edm |
namespace | edm::test |
Typedefs | |
typedef std::pair< string, string > | parsed_path_spec_t |
Functions | |
vector< edm::BranchDescription const * > | edm::getAllBranchDescriptions () |
std::vector< std::string > const & | edm::getAllTriggerNames () |
void | parse_path_spec (std::string const &path_spec, parsed_path_spec_t &output) |
void | remove_whitespace (std::string &s) |
void | edm::test::run_all_output_module_tests () |
void | test_parse_path_spec () |
void | test_remove_whitespace () |
typedef std::pair<string,string> parsed_path_spec_t [static] |
Definition at line 65 of file OutputModule.cc.
void @7392::parse_path_spec | ( | std::string const & | path_spec, | |
parsed_path_spec_t & | output | |||
) | [static] |
Definition at line 66 of file OutputModule.cc.
References remove_whitespace().
Referenced by edm::OutputModule::OutputModule(), and test_parse_path_spec().
00067 { 00068 string trimmed_path_spec(path_spec); 00069 remove_whitespace(trimmed_path_spec); 00070 00071 string::size_type colon = trimmed_path_spec.find(":"); 00072 if (colon == string::npos) { 00073 output.first = trimmed_path_spec; 00074 } else { 00075 output.first = trimmed_path_spec.substr(0, colon); 00076 output.second = trimmed_path_spec.substr(colon+1, 00077 trimmed_path_spec.size()); 00078 } 00079 }
void @7392::remove_whitespace | ( | std::string & | s | ) | [static] |
Definition at line 48 of file OutputModule.cc.
Referenced by parse_path_spec(), and test_remove_whitespace().
00048 { 00049 s.erase(remove(s.begin(), s.end(), ' '), s.end()); 00050 s.erase(remove(s.begin(), s.end(), '\t'), s.end()); 00051 }
void @7392::test_parse_path_spec | ( | ) | [static] |
Definition at line 81 of file OutputModule.cc.
References first, i, parse_path_spec(), and edm::second().
Referenced by edm::test::run_all_output_module_tests().
00081 { 00082 vector<std::string> paths; 00083 paths.push_back("a:p1"); 00084 paths.push_back("b:p2"); 00085 paths.push_back(" c"); 00086 paths.push_back("ddd\t:p3"); 00087 paths.push_back("eee: p4 "); 00088 00089 vector<parsed_path_spec_t> parsed(paths.size()); 00090 for (size_t i = 0; i < paths.size(); ++i) 00091 parse_path_spec(paths[i], parsed[i]); 00092 00093 assert(parsed[0].first == "a"); 00094 assert(parsed[0].second == "p1"); 00095 assert(parsed[1].first == "b"); 00096 assert(parsed[1].second == "p2"); 00097 assert(parsed[2].first == "c"); 00098 assert(parsed[2].second == ""); 00099 assert(parsed[3].first == "ddd"); 00100 assert(parsed[3].second == "p3"); 00101 assert(parsed[4].first == "eee"); 00102 assert(parsed[4].second == "p4"); 00103 }
void @7392::test_remove_whitespace | ( | ) | [static] |
Definition at line 53 of file OutputModule.cc.
References a, b, and remove_whitespace().
Referenced by edm::test::run_all_output_module_tests().
00053 { 00054 string a("noblanks"); 00055 string b("\t no blanks \t"); 00056 00057 remove_whitespace(b); 00058 assert(a == b); 00059 }
detail::CachedProducts& p |
Definition at line 241 of file OutputModule.cc.
Definition at line 242 of file OutputModule.cc.