]> git.llucax.com Git - software/bife/bife++.git/blobdiff - parser.h
Added a string substr test.
[software/bife/bife++.git] / parser.h
index 4eb8e79eba12d0b7132c5bc5c105dcbd0f9839ff..3476d87a34753eb14c05b1f937353b226fd06e4c 100644 (file)
--- a/parser.h
+++ b/parser.h
 #include <string>
 #include <stack>
 
 #include <string>
 #include <stack>
 
+// FIXME - Poner esto en un lugar más bonito.
+typedef bife::Widget* create_t(const std::string& name, const bife::Hash&);
+typedef void destroy_t(bife::Widget*);
+
 namespace bife {
 
     using std::string;
 namespace bife {
 
     using std::string;
@@ -25,14 +29,17 @@ namespace bife {
             typedef std::stack<Widget*> WidgetStack;
 
         // Attributes.
             typedef std::stack<Widget*> WidgetStack;
 
         // Attributes.
-        public:
-            /// Widget attributes.
-            Widget* root;
-
+        protected:
             /// Stack TODO.
             WidgetStack stack;
 
             // TODO Fallback.
             /// Stack TODO.
             WidgetStack stack;
 
             // TODO Fallback.
+            create_t* fb_create;
+            destroy_t* fb_destroy;
+
+        public:
+            /// Widget attributes.
+            Widget* root;
 
         // Methods.
         protected:
 
         // Methods.
         protected: