Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RootObjTree.hxx File Reference
#include <cstdint>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <TKey.h>
#include <ROOT/RError.hxx>
Include dependency graph for RootObjTree.hxx:
This graph shows which files directly or indirectly include this file:

Classes

struct  ROOT::CmdLine::RootObjNode
struct  ROOT::CmdLine::RootObjTree
 A representation of all objects involved in a rootls-style ROOT file listing. More...
struct  ROOT::CmdLine::RootSource

Namespaces

namespace  ROOT
 Small utility to parse cmdline options.
namespace  ROOT::CmdLine

Typedefs

using ROOT::CmdLine::NodeIdx_t = std::uint32_t

Enumerations

enum  ROOT::CmdLine::EGetMatchingPathsFlags { ROOT::CmdLine::kRecursive = 1 << 0 , ROOT::CmdLine::kIgnoreFailedMatches = 1 << 1 , ROOT::CmdLine::kOpenFilesAsWritable = 1 << 2 }
enum class  ROOT::CmdLine::ENodeFullPathOpt { ROOT::CmdLine::kExcludeFilename , ROOT::CmdLine::kIncludeFilename }

Functions

RootSource ROOT::CmdLine::GetMatchingPathsInFile (std::string_view fileName, std::string_view pattern, std::uint32_t flags)
 Given a file and a "path pattern", returns a RootSource containing the tree of matched objects.
RootObjNode ROOT::CmdLine::NodeFromKey (TKey &key)
std::string ROOT::CmdLine::NodeFullPath (const RootObjTree &tree, NodeIdx_t nodeIdx, ENodeFullPathOpt opt)
 Given a node, returns its full path. If opt == kIncludeFilename, the path is prepended by "filename.root:".
RootSource ROOT::CmdLine::ParseRootSource (std::string_view sourceRaw, std::uint32_t flags)
 Given a string like "file.root:dir/obj", converts it to a RootSource.
std::vector< ROOT::CmdLine::RootSourceROOT::CmdLine::ParseRootSources (const std::vector< std::string > &sourcesRaw, std::uint32_t flags)
 Given a list of strings like "file.root:dir/obj", converts each string to a RootSource.
void ROOT::CmdLine::PrintObjTree (const RootObjTree &tree, std::ostream &out=std::cout)
 Prints out the structure of the object tree. Helpful for debugging.
ROOT::RResult< std::pair< std::string_view, std::string_view > > ROOT::CmdLine::SplitIntoFileNameAndPattern (std::string_view sourceRaw)
 Given a string like "root://file.root:a/b/c", splits it into { "root://file.root", "a/b/c" }.