Panda3D

binToC.h

00001 // Filename: binToC.h
00002 // Created by:  drose (18Jul03)
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 #ifndef BINTOC_H
00016 #define BINTOC_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 #include "programBase.h"
00021 #include "withOutputFile.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : BinToC
00025 // Description : A utility program to read a (binary) file and output
00026 //               a table that can be compiled via a C compiler to
00027 //               generate the same data.  Handy for portably importing
00028 //               binary data into a library or executable.
00029 ////////////////////////////////////////////////////////////////////
00030 class BinToC : public ProgramBase, public WithOutputFile {
00031 public:
00032   BinToC();
00033 
00034   void run();
00035 
00036 protected:
00037   virtual bool handle_args(Args &args);
00038 
00039   Filename _input_filename;
00040   string _table_name;
00041   bool _static_table;
00042   bool _for_string;
00043 };
00044 
00045 #endif
 All Classes Functions Variables Enumerations