symbol_sort.h

Go to the documentation of this file.
00001 
00012 #ifndef SYMBOL_SORT_H
00013 #define SYMBOL_SORT_H
00014 
00015 #include "symbol.h"
00016 
00017 #include <vector>
00018 #include <string>
00019 
00020 struct sort_options {
00021     enum sort_order {
00022         // order give sort order if caller doesn't specify one
00023         first,
00024         sample = first,
00025         image,
00026         app_name,
00027         symbol,
00028         debug,
00029         vma,
00030         last
00031     };
00032 
00033     sort_options() {}
00034 
00035     void add_sort_option(std::string const & name);
00036     void add_sort_option(sort_order order);
00037 
00041     void sort(symbol_collection & syms, bool reverse_sort,
00042               bool long_filenames) const;
00043 
00047     void sort(diff_collection & syms, bool reverse_sort,
00048               bool long_filenames) const;
00049 
00050     std::vector<sort_order> options;
00051 };
00052 
00053 #endif // SYMBOL_SORT_H

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1