Functions | Variables
inc-expand.cc File Reference
#include "cetlib/filepath_maker.h"
#include "cetlib/includer.h"
#include "cetlib_except/exception.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>

Go to the source code of this file.

Functions

int do_including (std::string const &from, std::ostream &to)
 
int main (int argc, char *argv[])
 

Variables

cet::filepath_maker identity_filepath
 

Function Documentation

int do_including ( std::string const &  from,
std::ostream &  to 
)

Definition at line 21 of file inc-expand.cc.

21  {
23 
24  cet::includer::const_iterator it = inc.begin();
26 
27  std::ostream_iterator<char> out(to);
28  std::copy(it, end, out);
29 
30  return 0;
31 }
32 catch (cet::exception const& e) {
33  return 1;
34 } // do_including()
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
const double e
cet::filepath_maker identity_filepath
Definition: inc-expand.cc:16
T copy(T const &v)
std::string::const_iterator const_iterator
Definition: includer.h:27
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
int main ( int  argc,
char *  argv[] 
)

Definition at line 39 of file inc-expand.cc.

40 {
41  int nfailures = 0;
42 
43  for (int k = 1; k != argc; ++k)
44  nfailures += do_including(argv[k], std::cout);
45 
46  return nfailures;
47 
48 } // main()
int do_including(std::string const &from, std::ostream &to)
Definition: inc-expand.cc:21

Variable Documentation

cet::filepath_maker identity_filepath

Definition at line 16 of file inc-expand.cc.