/* $Id: update.h 1107 2007-04-16 23:59:13Z rvernica $ Copyright (C) 2007 by The Regents of the University of California Redistribution of this file is permitted under the terms of the GNU Public License (GPL). Date: 05/23/2006 Author: Rares Vernica */ #include #include using namespace std; class Update { public: unsigned id; string str; Update() {} Update(unsigned id): id(id) {} Update(unsigned id, string str): id(id), str(str) {} friend ostream& operator<<(ostream &out, const Update &u); friend istream& operator>>(istream &in, Update &u); }; typedef vector ContUpdates; ostream& operator<<(ostream &out, const ContUpdates &c); istream& operator>>(istream &in, ContUpdates &c);