Formatter *f;
QueryState(Formatter *f) : f(f) {}
void print(std::ostream *out) const {
- *out << "Query" << std::endl;
+ *out << "Query";
}
};
MInfoRec(int from, pg_info_t &info, epoch_t msg_epoch) :
from(from), info(info), msg_epoch(msg_epoch) {}
void print(std::ostream *out) const {
- *out << "MInfoRec from " << from
- << " info: " << info
- << std::endl;
+ *out << "MInfoRec from " << from << " info: " << info;
}
};
MLogRec(int from, MOSDPGLog *msg) :
from(from), msg(msg) {}
void print(std::ostream *out) const {
- *out << "MLogRec from " << from
- << std::endl;
+ *out << "MLogRec from " << from;
}
};
MNotifyRec(int from, pg_notify_t ¬ify) :
from(from), notify(notify) {}
void print(std::ostream *out) const {
- *out << "MNotifyRec from " << from
- << " notify: " << notify
- << std::endl;
+ *out << "MNotifyRec from " << from << " notify: " << notify;
}
};
void print(std::ostream *out) const {
*out << "MQuery from " << from
<< " query_epoch " << query_epoch
- << " query: " << query
- << std::endl;
+ << " query: " << query;
}
};
AdvMap(OSDMapRef osdmap, OSDMapRef lastmap, vector<int>& newup, vector<int>& newacting):
osdmap(osdmap), lastmap(lastmap), newup(newup), newacting(newacting) {}
void print(std::ostream *out) const {
- *out << "AdvMap" << std::endl;
+ *out << "AdvMap";
}
};
struct ActMap : boost::statechart::event< ActMap > {
ActMap() : boost::statechart::event< ActMap >() {}
void print(std::ostream *out) const {
- *out << "ActMap" << std::endl;
+ *out << "ActMap";
}
};
struct Activate : boost::statechart::event< Activate > {
Activate(epoch_t q) : boost::statechart::event< Activate >(),
query_epoch(q) {}
void print(std::ostream *out) const {
- *out << "Activate from " << query_epoch << std::endl;
+ *out << "Activate from " << query_epoch;
}
};
#define TrivialEvent(T) struct T : boost::statechart::event< T > { \
T() : boost::statechart::event< T >() {} \
void print(std::ostream *out) const { \
- *out << #T << std::endl; \
+ *out << #T; \
} \
};
TrivialEvent(Initialize)