![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsArticulatedBodySetup.hpp 00003 ******************************************************************************/ 00007 /****************************************************************************** 00008 SUKITTI PUNAK (03/26/2010) 00009 UPDATE (05/01/2010) 00010 ******************************************************************************/ 00011 #ifndef TAPs_ARTICULATED_BODY_SETUP_HPP 00012 #define TAPs_ARTICULATED_BODY_SETUP_HPP 00013 00014 #include "TAPsTextFile.hpp" 00015 #include "TAPsStringManipulator.hpp" 00016 #include "../Model/TAPsModelArticulatedBody.hpp" 00017 //#include <exception> 00018 #include "../Core/TAPsException.hpp" 00019 00020 BEGIN_NAMESPACE_TAPs 00021 //============================================================================= 00022 template <typename T> 00023 class ArticulatedBodySetup { 00024 //============================================================================= 00025 public: 00026 // Member Functions ------------------------------------------------------- 00027 static ModelArticulatedBody<T> * FromFile ( 00028 std::string setupFile 00029 ) throw(...); 00030 // Data Members ----------------------------------------------------------- 00031 //============================================================================= 00032 protected: 00033 // Member Functions ------------------------------------------------------- 00034 00036 static void Interpret ( std::string const & line, int & lineNo ) throw(...); 00037 00039 static void Node ( std::string info, int & lineNo ) throw(...); 00040 00042 //static void Connection ( std::string info, int & lineNo ) throw(...); 00043 00044 // Data Members ----------------------------------------------------------- 00045 //============================================================================= 00046 private: 00047 // Member Functions ------------------------------------------------------- 00048 00050 static void ReadFile ( std::string const & setupFile ) throw(...); 00051 00065 static void Node () throw(...); 00066 00067 // Data Members ----------------------------------------------------------- 00068 static TextFile g_TextFile; 00069 static ModelArticulatedBody<T> * g_pArtBody; 00070 //============================================================================= 00071 }; // END CLASS ArticulatedBodySetup 00072 //============================================================================= 00073 END_NAMESPACE_TAPs 00074 //----------------------------------------------------------------------------- 00076 #include "TAPsArticulatedBodySetup.cpp" 00077 00079 // Include definition if TAPs_USE_EXPORT is not defined 00080 //#if !defined( TAPs_USE_EXPORT ) 00081 // #include "TAPsArticulatedBodySetup.cpp" 00082 //#endif 00083 //----------------------------------------------------------------------------- 00084 #endif 00085 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00086 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----