Panda3D
show_ddb.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file show_ddb.cxx
10  * @author drose
11  * @date 2002-11-02
12  */
13 
14 #include "pandabase.h"
15 #include "downloadDb.h"
16 #include "filename.h"
17 
18 int
19 main(int argc, char *argv[]) {
20  if (argc != 3) {
21  std::cerr << "Usage: show_ddb server.ddb client.ddb\n";
22  return 1;
23  }
24 
25  Filename server_ddb = Filename::from_os_specific(argv[1]);
26  Filename client_ddb = Filename::from_os_specific(argv[2]);
27 
28  DownloadDb db(server_ddb, client_ddb);
29  db.write(std::cout);
30 
31  return 0;
32 }
A listing of files within multifiles for management of client-side synchronization with a server-prov...
Definition: downloadDb.h:62
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
static Filename from_os_specific(const std::string &os_specific, Type type=T_general)
This named constructor returns a Panda-style filename (that is, using forward slashes,...
Definition: filename.cxx:328