Panda3D
|
00001 // Filename: show_ddb.cxx 00002 // Created by: drose (02Nov02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "pandabase.h" 00016 #include "downloadDb.h" 00017 #include "filename.h" 00018 00019 int 00020 main(int argc, char *argv[]) { 00021 if (argc != 3) { 00022 cerr << "Usage: show_ddb server.ddb client.ddb\n"; 00023 return 1; 00024 } 00025 00026 Filename server_ddb = Filename::from_os_specific(argv[1]); 00027 Filename client_ddb = Filename::from_os_specific(argv[2]); 00028 00029 DownloadDb db(server_ddb, client_ddb); 00030 db.write(cout); 00031 00032 return 0; 00033 }