Deleted Added
sdiff udiff text old ( 6657:ef5fae93a3b2 ) new ( 6862:3d308cbd1657 )
full compact
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 416 unchanged lines hidden (view full) ---

425enum ${{self.c_ident}} {
426 ${{self.c_ident}}_FIRST,
427''')
428
429 code.indent()
430 # For each field
431 for i,(ident,enum) in enumerate(self.enums.iteritems()):
432 desc = enum.get("desc", "No description avaliable")
433 init = ' = %s_FIRST' % self.c_ident if i == 0 else ''
434
435 code('${{self.c_ident}}_${{enum.ident}}$init, /**< $desc */')
436 code.dedent()
437 code('''
438 ${{self.c_ident}}_NUM
439};
440${{self.c_ident}} string_to_${{self.c_ident}}(const string& str);
441string ${{self.c_ident}}_to_string(const ${{self.c_ident}}& obj);
442${{self.c_ident}} &operator++(${{self.c_ident}} &e);

--- 208 unchanged lines hidden ---