LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
test07.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Enumerations

enum  Color { red =100, blue, yellow }
 

Functions

 BOOST_PYTHON_MODULE (test07)
 

Enumeration Type Documentation

enum Color
Enumerator
red 
blue 
yellow 

Definition at line 35 of file test07.cc.

35 { red=100, blue, yellow };
Definition: test07.cc:35
Definition: test07.cc:35
Definition: test07.cc:35

Function Documentation

BOOST_PYTHON_MODULE ( test07  )

Definition at line 43 of file test07.cc.

References blue, red, value, and yellow.

44 {
45  enum_<Color>("Color")
46  .value("red", red)
47  .value("blue", blue)
48  .value("yellow", yellow)
49  ;
50 }
Definition: test07.cc:35
Definition: test07.cc:35
Definition: test07.cc:35
double value
Definition: spectrum.C:18