Panda3D
binToC.h
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 binToC.h
10  * @author drose
11  * @date 2003-07-18
12  */
13 
14 #ifndef BINTOC_H
15 #define BINTOC_H
16 
17 #include "pandatoolbase.h"
18 
19 #include "programBase.h"
20 #include "withOutputFile.h"
21 
22 /**
23  * A utility program to read a (binary) file and output a table that can be
24  * compiled via a C compiler to generate the same data. Handy for portably
25  * importing binary data into a library or executable.
26  */
27 class BinToC : public ProgramBase, public WithOutputFile {
28 public:
29  BinToC();
30 
31  void run();
32 
33 protected:
34  virtual bool handle_args(Args &args);
35 
36  Filename _input_filename;
37  std::string _table_name;
38  bool _static_table;
39  bool _for_string;
40 };
41 
42 #endif
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition: programBase.h:34
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
A utility program to read a (binary) file and output a table that can be compiled via a C compiler to...
Definition: binToC.h:27
This is the bare functionality (intended to be inherited from along with ProgramBase or some derivati...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.