filename_spec Class Reference

A class to split and store components of a sample filename. More...

#include <filename_spec.h>

Collaboration diagram for filename_spec:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 filename_spec (std::string const &filename, extra_images const &extra)
 filename_spec ()
void set_sample_filename (std::string const &filename, extra_images const &extra)
bool match (filename_spec const &rhs, std::string const &binary) const
bool is_dependent () const

Friends

class profile_spec

Detailed Description

A class to split and store components of a sample filename.

These derived values are then used to match against a profile_spec as given by the user.


Constructor & Destructor Documentation

filename_spec::filename_spec std::string const &  filename,
extra_images const &  extra
 

Parameters:
filename the samples filename
extra extra binary image location
build a filename_spec from a samples filename

filename_spec::filename_spec  ) 
 


Member Function Documentation

bool filename_spec::is_dependent  )  const
 

bool filename_spec::match filename_spec const &  rhs,
std::string const &  binary
const
 

Parameters:
rhs right hand side of the match operator
binary if binary is non-empty, and matches the binary or lib name, use it rather than the one in rhs.
return true if *this match rhs, matching if:
  • image_name are identical
  • lib_name are identical
  • event_spec match

This operation is not commutative. First part of PP:3.24

void filename_spec::set_sample_filename std::string const &  filename,
extra_images const &  extra
 

Parameters:
filename a sample filename
extra extra binary image location
setup filename spec according to the samples filename. PP:3.19 to 3.25


Friends And Related Function Documentation

friend class profile_spec [friend]
 


The documentation for this class was generated from the following files:
Generated on Thu Jul 17 19:54:24 2008 for oprofile by  doxygen 1.4.6