File_parser.h

Go to the documentation of this file.
00001 /*
00002 ** File_parser.h
00003 ** 
00004 ** Made by damien
00005 ** Login   <damien@ortie>
00006 ** 
00007 ** Started on  Fri Jan 25 19:23:33 2008 damien
00008 ** Last update Fri Jan 25 19:23:33 2008 damien
00009 */
00010 
00011 #ifndef         FILE_PARSER_H_
00012 # define        FILE_PARSER_H_
00013 
00014 #include <stdlib.h>
00015 #include <iostream>
00016 #include <cmath>
00017 #include <string>
00018 #include <errno.h>
00019 #include <stdio.h>
00020 using namespace std;
00021 
00022 
00023 #include <Mesh_object.h>
00024 #include <Curve_3D.h>
00025 #include <Skinned.h>
00026 #include <Skeleton.h>
00027 
00028 #include <tinyXml/tinyxml.h>
00029 #include <tinyXml/tinystr.h>
00030 
00031 
00032 class File_parser
00033 {
00034  public:
00035 
00036   File_parser();
00037   ~File_parser();
00038 
00039 
00040   int load_collada_skeleton(const char* filename,const char* skeleton_name,Skeleton *skeleton) const;
00041   int load_collada_animation(const char* filename,Skeleton *skeleton) const;
00042   int load_collada_skining_attribute(const char* filename, Skinned *skinned) const;
00043 
00044   int save_skeleton_sk(const char* filename,Skeleton &skeleton) const;
00045   int load_old_sk_skeleton(const char *filename,Skeleton *skeleton) const;//old
00046 
00047 
00048  private:
00049 
00050   int reccursive_skeleton_collada_reading_node(TiXmlHandle &current_node,Joint *current) const;
00051   
00052 };
00053 
00054 
00055 #endif      /* !FILE_PARSER_H_ */

Generated on Mon Mar 30 16:55:54 2009 by  doxygen 1.5.6