lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Utils.hh File Reference

Declares psalg directory helpers files_in_dir() and dir_content(). More...

#include <vector>
#include <string>
#include <iostream>
#include <dirent.h>
#include <algorithm>

Namespaces

namespace  psalg
 Usage.
 

Functions

std::vector< std::string > psalg::files_in_dir (const char *dirname="/reg/neh/home/dubrovin/LCLS/con-detector/work", const char *pattern=0)
 Return the sorted paths dirname + "/" + name of the entries of dirname ("." and ".." included) whose names contain pattern, or all entries if pattern is null.
 
void psalg::dir_content (const char *dirname="/reg/neh/home/dubrovin/LCLS/con-detector/work", const char *pattern=0)
 Print to stdout, one per line, the names of the entries of dirname that contain pattern (all if pattern is null).
 

Detailed Description

Declares psalg directory helpers files_in_dir() and dir_content().