Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
rootcp.cxx File Reference
#include <ROOT/RLogger.hxx>
#include "logging.hxx"
#include "optparse.hxx"
#include "RootObjTree.hxx"
#include "RootObjTree.cxx"
#include <TClass.h>
#include <TError.h>
#include <TFile.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TTree.h>
#include <algorithm>
#include <iostream>
#include <memory>
#include <string_view>
#include <vector>
Include dependency graph for rootcp.cxx:

Classes

struct  RootCpArgs

Functions

static void CopyNode (const RootSource &src, const RootCpDestination &dest, NodeIdx_t nodeIdx, const RootCpArgs &args)
static std::pair< std::string_view, std::string_view > DecomposePath (std::string_view path)
int main (int argc, char **argv)
static std::unique_ptr< TFileOpenFile (const char *fileName, const char *mode)
static RootCpArgs ParseArgs (const char **args, int nArgs)

Variables

static const char *const kLongHelp
static const char *const kShortHelp

Detailed Description

Command line tool to copy objects from ROOT files to others.

Author
Giacomo Parolini giaco.nosp@m.mo.p.nosp@m.aroli.nosp@m.ni@c.nosp@m.ern.c.nosp@m.h
Date
2025-10-09

Definition in file rootcp.cxx.

Function Documentation

◆ CopyNode()

void CopyNode ( const RootSource & src,
const RootCpDestination & dest,
NodeIdx_t nodeIdx,
const RootCpArgs & args )
static

Definition at line 178 of file rootcp.cxx.

◆ DecomposePath()

std::pair< std::string_view, std::string_view > DecomposePath ( std::string_view path)
static

Definition at line 165 of file rootcp.cxx.

◆ main()

int main ( int argc,
char ** argv )

Definition at line 307 of file rootcp.cxx.

◆ OpenFile()

std::unique_ptr< TFile > OpenFile ( const char * fileName,
const char * mode )
static

Definition at line 140 of file rootcp.cxx.

◆ ParseArgs()

RootCpArgs ParseArgs ( const char ** args,
int nArgs )
static

Definition at line 92 of file rootcp.cxx.

Variable Documentation

◆ kLongHelp

const char* const kLongHelp
static

Definition at line 31 of file rootcp.cxx.

◆ kShortHelp

const char* const kShortHelp
static
Initial value:
= "usage: rootcp [-h] [-c COMPRESS] [--recreate] [-r|--recursive] [--replace] "
"[-v|--verbose] SOURCE [SOURCE ...] DEST\n"

Definition at line 29 of file rootcp.cxx.