00001 // 00002 // Copyright (c) 2012 Daniel Lundin 00003 // 00004 00005 #ifndef MEDIDA_SAMPLING_INTERFACE_H_ 00006 #define MEDIDA_SAMPLING_INTERFACE_H_ 00007 00008 #include "medida/stats/snapshot.h" 00009 00010 namespace medida { 00011 00012 class SamplingInterface { 00013 public: 00014 enum SampleType { kUniform, kBiased }; 00015 virtual ~SamplingInterface() {}; 00016 virtual stats::Snapshot GetSnapshot() const = 0; 00017 }; 00018 00019 } // namespace medida 00020 00021 #endif // MEDIDA_SAMPLING_INTERFACE_H_