X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FVariables.ih;h=88b2207d8dc945c425efd5d5be6bda730eed2b3f;hb=80c6cb7ba9ad7776824c84809f422209adf27331;hp=e1a2ce8aa1d1526d1124358985312ee768bcbef7;hpb=fe92380af7b511d398290e4ab0c535025006b57b;p=senf.git diff --git a/Console/Variables.ih b/Console/Variables.ih index e1a2ce8..88b2207 100644 --- a/Console/Variables.ih +++ b/Console/Variables.ih @@ -28,11 +28,16 @@ // Custom includes #include +#include ///////////////////////////////ih.p//////////////////////////////////////// namespace senf { namespace console { + + template class ConstVariableAttributor; + template class VariableAttributor; + namespace detail { template @@ -66,6 +71,22 @@ namespace detail { OnChangeHandler handler_; }; + template ::value> + struct VariableNodeCreator + { + typedef VariableAttributor result_type; + static VariableAttributor add(DirectoryNode & node, std::string const & name, + Variable & var); + }; + + template + struct VariableNodeCreator + { + typedef ConstVariableAttributor result_type; + static ConstVariableAttributor add(DirectoryNode & node, std::string const & name, + Variable & var); + }; + }}} ///////////////////////////////ih.e////////////////////////////////////////