![]() |
|
|||
File indexing completed on 2025-04-03 08:03:15
0001 //========================================================================== 0002 // AIDA Detector description implementation 0003 //-------------------------------------------------------------------------- 0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN) 0005 // All rights reserved. 0006 // 0007 // For the licensing terms see $DD4hepINSTALL/LICENSE. 0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS. 0009 // 0010 // Author : M.Frank 0011 // 0012 //========================================================================== 0013 // Framework include files 0014 #include <DD4hep/Factories.h> 0015 #include <iostream> 0016 0017 #include <TUri.h> 0018 0019 /// Plugin function: Test ROOT URI object 0020 /** 0021 * 0022 * \author M.Frank 0023 * \version 1.0 0024 * \date 20/06/2024 0025 */ 0026 static int Test_TUri (dd4hep::Detector& , int argc, char** argv) { 0027 std::string name; 0028 for( int i=0; i<argc && argv[i]; ++i ) { 0029 if ( 0 == ::strncmp("-uri",argv[i],4) ) 0030 name = argv[++i]; 0031 } 0032 if ( name.empty() ) { 0033 /// Help printout describing the basic command line interface 0034 std::cout << "Usage: -plugin <name> -name <uri-string>" 0035 << std::endl << std::flush; 0036 ::exit(EINVAL); 0037 } 0038 TUri uri(name.c_str()); 0039 std::cout << "--> relative part: " << uri.GetRelativePart() << std::endl; 0040 uri.Print(); 0041 return 0; 0042 } 0043 0044 DECLARE_APPLY(DD4hep_Test_TUri,Test_TUri)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |