/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWStorage/StorageFactory/test/local.cpp
26 строк
701 B
Chris Jones
Move Utilities/StorageFactory to FWStorage/StorageFactory
10 дек 2025, 18:12
10 дек 2025, 18:12
852ff34
Код
Авторство
О чём код?
#include "FWStorage/StorageFactory/test/Test.h" #include "FWStorage/StorageFactory/interface/Storage.h" #include "FWCore/Utilities/interface/Exception.h" int main(int, char** /*argv*/) try { initTest(); using namespace edm::storage; auto s = StorageFactory::get()->open("/etc/passwd"); char buf[1024]; IOSize n; while ((n = s->read(buf, sizeof(buf)))) std::cout.write(buf, n); s->close(); std::cout << StorageAccount::summaryText(true) << std::endl; return EXIT_SUCCESS; } catch (cms::Exception const& e) { std::cerr << e.explainSelf() << std::endl; return EXIT_FAILURE; } catch (std::exception const& e) { std::cerr << e.what() << std::endl; return EXIT_FAILURE; }