00001 #ifndef __J2K__EXTERN_HPP__ 00002 #define __J2K__EXTERN_HPP__ 00003 00004 #include "Project.hpp" 00005 00006 // This file must be included inside your .cc file 00007 // not inside your .hh header file else it won't work. 00008 00009 // For example, this should be inside my_class.cc file 00010 // like this: #include "Extern.hpp" 00011 00012 // Add here all your Global Variable declaration 00013 // for your class object pointer. 00014 00015 // This says that the global Variable 'board' exist 00016 // IT DOESN'T CREATE IT ! 00017 // 00018 // IT MUST BE DEFINED ONCE FOR ALL OUTSIDE of main() 00019 // in your main.cc file, then you shall create 00020 // the board object in your main() body. 00021 00022 extern Board* board; 00023 00024 /* 00025 extern Board* b1; 00026 extern Reader* r1; 00027 extern Writer* w1; 00028 */ 00029 00030 #endif