/[libvob]/libvob/src/jni/Gen.cxx
ViewVC logotype

Diff of /libvob/src/jni/Gen.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by tjl, Mon Mar 10 11:15:13 2003 UTC revision 1.8 by tjl, Mon Mar 10 14:26:18 2003 UTC
# Line 41  std::ostringstream VOB_TRANSCSTREAM; Line 41  std::ostringstream VOB_TRANSCSTREAM;
41    
42  int main() {  int main() {
43      std::ifstream templ("src/jni/GLRen.template.java");      std::ifstream templ("src/jni/GLRen.template.java");
44        std::ifstream templtrans("src/jni/GLVobCoorder_Gen.template.java");
45    
46      std::ofstream java("org/nongnu/libvob/gl/GLRen.java");      std::ofstream java("org/nongnu/libvob/gl/GLRen.java");
47        std::ofstream javatrans(
48                "org/nongnu/libvob/impl/gl/GLVobCoorder_Gen.java");
49      std::ofstream jni("src/jni/GLRen.gen.cxx");      std::ofstream jni("src/jni/GLRen.gen.cxx");
50      java << "//COMPUTER GENERATED DO NOT EDIT\n";      java << "//COMPUTER GENERATED DO NOT EDIT\n";
51    
# Line 51  int main() { Line 54  int main() {
54      std::ostreambuf_iterator<char> out(java);      std::ostreambuf_iterator<char> out(java);
55      std::copy(in, eos, out);      std::copy(in, eos, out);
56    
57        std::istreambuf_iterator<char> tin(templtrans);
58        std::ostreambuf_iterator<char> tout(javatrans);
59        std::copy(tin, eos, tout);
60    
61      java << VOB_JAVASTREAM.str()<<"\n\n";      java << VOB_JAVASTREAM.str()<<"\n\n";
62      java << "}\n";      java << "}\n";
63    
64        javatrans << VOB_TRANSJAVASTREAM.str()<<"\n\n";
65        javatrans << "}\n";
66    
67    
68    
69      jni << "//COMPUTER GENERATED DO NOT EDIT\n";      jni << "//COMPUTER GENERATED DO NOT EDIT\n";
70      jni << "#include <vob/jni/Types.hxx>\n";      jni << "#include <vob/jni/Types.hxx>\n";
71      jni << "#include <vob/jni/Define.hxx>\n";      jni << "#include <vob/jni/Define.hxx>\n";

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26