Doc.hpp

Ir a la documentaciĆ³n de este archivo.
00001 
00012 #if !defined(Doc_hpp)
00013 #define Doc_hpp
00014 
00015 #include "comun.hpp"
00016 
00017 using namespace std;
00018 
00022 class Doc
00023 {
00024         public:
00025                 string URL; 
00026                 string cond; 
00027                 string fecha; 
00028                 long numoc; 
00030                 Doc(string u, string c, string f, long n = 0): 
00031                         URL(u), cond(c), fecha(f), numoc(n)
00032                 {
00033                         //cout << f << endl;
00034                         ASSERT(u.length() > 0);
00035                         ASSERT(u.length() < MAXLURL);
00036                         ASSERT(c.length() <= MAXLCONDENSADO);
00037                         ASSERT(f.length() == 10 && f[4] == '-' &&
00038                                f[7] == '-');
00039                 }
00040 };
00041 
00047 std::ostream &operator<<(std::ostream &os, Doc d);
00048 
00055 bool operator<(Doc d1, Doc d2);
00056 
00057 
00065 void escribeDocs(iostream &os, vector<Doc> &vdoc, vector<long> *reord = NULL);
00066 
00067 
00073 vector<Doc> leeDocs(istream &is);
00074 
00075 
00087 vector<long> mezclaDocs(vector<Doc> &docs1, vector<Doc> &docs2);
00088 
00089 #endif

Generado el Wed Jan 6 06:58:21 2010 para Mt77 por  doxygen 1.5.4