// file : xsd/options-parser.hxx // author : Boris Kolpackov // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #ifndef OPTIONS_PARSER_HXX #define OPTIONS_PARSER_HXX #include #include namespace cli { template <> struct parser { static void parse (NarrowString& x, scanner& s) { const char* o (s.next ()); if (s.more ()) x = s.next (); else throw missing_value (o); } }; } #endif // OPTIONS_PARSER_HXX