Panda3D
binToC.h
1 // Filename: binToC.h
2 // Created by: drose (18Jul03)
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 #ifndef BINTOC_H
16 #define BINTOC_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "programBase.h"
21 #include "withOutputFile.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : BinToC
25 // Description : A utility program to read a (binary) file and output
26 // a table that can be compiled via a C compiler to
27 // generate the same data. Handy for portably importing
28 // binary data into a library or executable.
29 ////////////////////////////////////////////////////////////////////
30 class BinToC : public ProgramBase, public WithOutputFile {
31 public:
32  BinToC();
33 
34  void run();
35 
36 protected:
37  virtual bool handle_args(Args &args);
38 
39  Filename _input_filename;
40  string _table_name;
41  bool _static_table;
42  bool _for_string;
43 };
44 
45 #endif
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition: programBase.h:37
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
A utility program to read a (binary) file and output a table that can be compiled via a C compiler to...
Definition: binToC.h:30
This is the bare functionality (intended to be inherited from along with ProgramBase or some derivati...