Conventions.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// epsic/src/util/Conventions.h
10
11#ifndef __Conventions_h
12#define __Conventions_h
13
14#include <iostream>
15
16namespace Signal {
17
19 enum Basis { Circular=0, Linear=1, Elliptical=2 };
20
22 enum Hand { Left=-1, Right=1 };
23
25 enum Argument { Conjugate=-1, Conventional=1 };
26
27 // //////////////////////////////////////////////////////////////////////
28
30 std::ostream& operator << (std::ostream&, Basis);
32 std::istream& operator >> (std::istream&, Basis&);
33
35 std::ostream& operator << (std::ostream&, Hand);
37 std::istream& operator >> (std::istream&, Hand&);
38
40 std::ostream& operator << (std::ostream&, Argument);
42 std::istream& operator >> (std::istream&, Argument&);
43
44}
45
46#endif
47
Defines various signal types.
Definition Conventions.h:16
Basis
The basis in which the electric field is represented.
Definition Conventions.h:19
Argument
The complex phase of the basis.
Definition Conventions.h:25
std::ostream & operator<<(std::ostream &, Basis)
Basis output operator.
Definition Conventions.C:14
Hand
The hand of the basis.
Definition Conventions.h:22
std::istream & operator>>(std::istream &, Basis &)
Basis input operator.
Definition Conventions.C:27

Generated using doxygen 1.14.0