00001 #ifndef BOREALIS_QUERYSTATE_H 00002 #define BOREALIS_QUERYSTATE_H 00003 00004 #include "common.h" 00005 #include "Objects.h" 00006 #include "StreamState.h" 00007 #include "Stats.h" 00008 00009 BOREALIS_NAMESPACE_BEGIN 00010 00011 class QueryState { 00012 public: 00013 Query m_query; 00014 QueryStatus m_status; 00015 vector<Name> m_new_inputs; // Streams to which we need to subscribe (temporarily neede while query is setup) 00016 00017 QueryState(Query query, QueryStatus status) : m_query(query), m_status(status) {} 00018 00019 void clear() { 00020 } 00021 00022 string repr() const { return as_string(); } 00023 string as_string() const { 00024 string out = string("QueryState{") + m_query; 00025 // Perhaps other parameters here 00026 out += "}"; 00027 return out; 00028 } 00029 00030 }; 00031 00032 NMSTL_TO_STRING(QueryState); 00033 00034 BOREALIS_NAMESPACE_END 00035 00036 #endif