ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Search.cpp
(Generate patch)

Comparing trunk/Search/Search.cpp (file contents):
Revision 1 by douglas, 2002-12-04T20:22:59-08:00 vs.
Revision 31 by douglas, 2003-01-07T13:08:39-08:00

# Line 1 | Line 1
1   /* ============================================================================
2   * Douglas Thrift's Search Engine License
3   *
4 < * Copyright (C) 2002, Douglas Thrift. All Rights Reserved.
4 > * Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.
5   * Redistribution and use in source and binary forms, with or without
6   * modification, are permitted provided that the following conditions are met:
7   *
# Line 61 | Line 61
61  
62   string program;
63   string programName = "Douglas Thrift's Search Engine";
64 < string programVersion = "1.1alpha";
64 > string programVersion = "1.1alpha2";
65   bool debug = false;
66  
67   int main(int argc, char* argv[])
# Line 267 | Line 267 | int main(int argc, char* argv[])
267          return 0;
268   }
269  
270 + string agent(bool version)
271 + {
272 +        string agent = programName + (version ? ('/' + programVersion) : "");
273 +
274 +        return agent;
275 + }
276 +
277   string platform()
278   {
279          string platform;
# Line 399 | Line 406 | void usage()
406   void version()
407   {
408          cout << programName << " " << programVersion << " "<< platform() << "\n\n"
409 <                << "   Copyright (C) 2002, Douglas Thrift. All Rights Reserved.\n\n"
409 >                << "   Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.\n"
410 >                << "\n"
411                  << "   This product includes software developed by Douglas Thrift\n"
412                  << "   (http://computers.douglasthrift.net/searchengine/).\n";
413   }
# Line 408 | Line 416 | void license()
416   {
417          cout << "License:\n"
418                  << "   Douglas Thrift's Search Engine License\n\n"
419 <                << "   Copyright (C) 2002, Douglas Thrift. All Rights Reserved.\n\n"
419 >                << "   Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.\n"
420 >                << "\n"
421                  << "   Redistribution and use in source and binary forms, with or with"
422                  << "out\n"
423                  << "   modification, are permitted provided that the following conditi"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines