CARMA C++
WorkResultSetWaitError.h
1 #ifndef CARMA_UTIL_WORKRESULTSETWAITERROR_H
2 #define CARMA_UTIL_WORKRESULTSETWAITERROR_H
3 
4 #include <string>
5 #include <set>
6 #include <map>
7 
10 
11 
12 namespace carma {
13 namespace util {
14 
15 
16 class WorkResultSet::WaitError : public util::ErrorException {
17  friend class WorkResultSet::Impl;
18 
19  public:
20  virtual ~WaitError( ) throw();
21 
22  ::std::set< ::std::string > getWaitedKeys( ) const;
23 
24  ::std::string getStringForWaitedKeys( ) const;
25 
26  bool hadUnfinishedKeys( ) const;
27 
28  bool singleUnfinishedKey( ) const;
29 
30  ::std::set< ::std::string > getUnfinishedKeys( ) const;
31 
32  ::std::string getStringForUnfinishedKeys( ) const;
33 
34  bool hadAbnormals( ) const;
35 
36  ::std::map< ::std::string, ::std::string > getAbnormals( ) const;
37 
38  ::std::string getStringForAbnormals( ) const;
39 
40  private:
41  // No copying
42  WaitError( const WaitError & rhs );
43  WaitError & operator=( const WaitError & rhs );
44 
45  WaitError(
46  const char * fileName,
47  int lineNo,
48  const ::std::string & wrsId,
49  const ::std::set< ::std::string > & waitedKeys,
50  const ::std::set< ::std::string > & keysLeft,
51  const ::std::map< ::std::string, ::std::string > & abnormals );
52 
53  const ::std::set< ::std::string > waitedKeys_;
54  const ::std::set< ::std::string > keysLeft_;
55  const ::std::map< ::std::string, ::std::string > abnormals_;
56 };
57 
58 
59 } // namespace carma::util
60 } // namespace carma
61 
62 #endif
Exception class for errors.
Interface file for the carma::util::WorkResultSet and carma::util::WorkResult classes.