PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PDevice.cpp
Go to the documentation of this file.
1//* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
3// Name: src/base/PNode.cpp
4// Purpose: Primary data structure for code
5// Author: Shane T. Mueller, Ph.D.
6// Copyright: (c) 2003-2026 Shane T. Mueller <smueller@obereed.net>
7// License: GPL 2
8//
9//
10//
11// This file is part of the PEBL project.
12//
13// PEBL is free software; you can redistribute it and/or modify
14// it under the terms of the GNU General Public License as published by
15// the Free Software Foundation; either version 2 of the License, or
16// (at your option) any later version.
17//
18// PEBL is distributed in the hope that it will be useful,
19// but WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21// GNU General Public License for more details.
22//
23// You should have received a copy of the GNU General Public License
24// along with PEBL; if not, write to the Free Software
25// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27#include "PDevice.h"
28
29#include <iostream>
30
31using std::ostream;
32using std::cout;
33using std::cerr;
34
37{
38
39}
40
43{
44 // Standard Destructor
45}
46
47
48
49
50//Overload of the << operator
51ostream & operator <<(ostream & out, const PDevice & device )
52{
53 device.SendToStream(out);
54 return out;
55}
56
57
58
59ostream & PDevice::SendToStream(ostream & out) const
60{
61 out << "<Anonymous Device>" << std::flush;
62 return out;
63}
64
65int PDevice::GetState(int interface) const
66{
67 cerr << "Getting improper state in PDevice::GetState\n";
68 return 0;
69}
ostream & operator<<(ostream &out, const PDevice &device)
Definition PDevice.cpp:51
PDevice()
The Standard constructor.
Definition PDevice.cpp:36
virtual int GetState(int iface) const
Definition PDevice.cpp:65
virtual ~PDevice()
The Standard destructor.
Definition PDevice.cpp:42