profile_spec Class Reference

Holds a parsed profile spec composed of tag:value pairs, as given in pp_interface documentation. More...

#include <profile_spec.h>

Collaboration diagram for profile_spec:
Collaboration graph
[legend]

List of all members.

Public Member Functions

std::list< std::string > generate_file_list (bool exclude_dependent, bool exclude_cg) const
bool match (filename_spec const &file_spec) const
std::string get_archive_path () const
 return archive name returns an empty string if not using an archive.

Static Public Member Functions

static profile_spec create (std::list< std::string > const &args, std::vector< std::string > const &image_path, std::string const &root_path)

Public Attributes

extra_images extra_found_images
 extra search path for images

Detailed Description

Holds a parsed profile spec composed of tag:value pairs, as given in pp_interface documentation.


Member Function Documentation

static profile_spec profile_spec::create ( std::list< std::string > const &  args,
std::vector< std::string > const &  image_path,
std::string const &  root_path 
) [static]
Parameters:
args a vector of non options strings
extra extra image paths to search

Factory returning a profile_spec instance storing all valid tag:value contained in args vector doing also alias substitution, non-valid tag:value options are considered as image:value

Referenced by handle_options().

list< string > profile_spec::generate_file_list ( bool  exclude_dependent,
bool  exclude_cg 
) const
Parameters:
exclude_dependent whether to exclude dependent sub-images
exclude_cg whether to exclude call graph file

Use the spec to generate the list of candidate sample files.

References create_file_list(), op_realpath(), and op_samples_dir.

Referenced by handle_options().

string profile_spec::get_archive_path (  )  const

return archive name returns an empty string if not using an archive.

Referenced by handle_options().

bool profile_spec::match ( filename_spec const &  file_spec  )  const
Parameters:
file_spec the filename specification to check

return true if filename match the spec. PP:3.24 internal loop

References extra_found_images, comma_list< T >::match(), and glob_filter::match().


Member Data Documentation

extra search path for images

Referenced by handle_options(), and match().


The documentation for this class was generated from the following files:

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1