File: declarations_enums.hpp

package info (click to toggle)
pygccxml 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,444 kB
  • sloc: xml: 29,841; python: 13,914; cpp: 2,671; makefile: 163; ansic: 59
file content (26 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2014-2017 Insight Software Consortium.
// Copyright 2004-2009 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt

#ifndef __declarations_enums_hpp__
#define __declarations_enums_hpp__

namespace declarations{ namespace enums{

enum ENumbers{ e0, e1, e2, e3, e4, e5, e6, e7, e8, e9 };

class data{
public:
    enum EColor{ red, green, blue, black, white };
private:
    enum EPrivColor{ priv_red, priv_green, priv_blue, priv_black, priv_white };

    void do_smth(EPrivColor x){}
	EColor favorite_color;
};

} }

#endif//__declarations_enums_hpp__