Panda3D
show_ddb.cxx
1 // Filename: show_ddb.cxx
2 // Created by: drose (02Nov02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "pandabase.h"
16 #include "pystub.h"
17 #include "downloadDb.h"
18 #include "filename.h"
19 
20 int
21 main(int argc, char *argv[]) {
22  // A call to pystub() to force libpystub.so to be linked in.
23  pystub();
24 
25  if (argc != 3) {
26  cerr << "Usage: show_ddb server.ddb client.ddb\n";
27  return 1;
28  }
29 
30  Filename server_ddb = Filename::from_os_specific(argv[1]);
31  Filename client_ddb = Filename::from_os_specific(argv[2]);
32 
33  DownloadDb db(server_ddb, client_ddb);
34  db.write(cout);
35 
36  return 0;
37 }
A listing of files within multifiles for management of client-side synchronization with a server-prov...
Definition: downloadDb.h:67
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
static Filename from_os_specific(const string &os_specific, Type type=T_general)
This named constructor returns a Panda-style filename (that is, using forward slashes, and no drive letter) based on the supplied filename string that describes a filename in the local system conventions (for instance, on Windows, it may use backslashes or begin with a drive letter and a colon).
Definition: filename.cxx:332