|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PNetwork.h>
Public Member Functions | |
| PNetwork () | |
| The Standard constructor. | |
| virtual | ~PNetwork () |
| The Standard destructor. | |
| virtual void | SetHostIP (unsigned int host) |
| virtual unsigned int | GetHost () |
| virtual void | SetHostName (std::string hostname) |
| virtual std::string | GetHostName () |
| virtual void | SetPort (unsigned int port) |
| virtual unsigned int | GetPort () |
| virtual bool | IsOpen () |
| virtual Variant | ConvertAddress (unsigned long int address) |
| virtual void | SetOpen (bool open) |
Public Member Functions inherited from PDevice | |
| PDevice () | |
| The Standard constructor. | |
| virtual | ~PDevice () |
| The Standard destructor. | |
| virtual PEBL_DEVICE_TYPE | GetDeviceType () |
| virtual int | GetState (int iface) const |
Public Member Functions inherited from PEBLObjectBase | |
| PEBLObjectBase () | |
| Standard Constructor. | |
| PEBLObjectBase (ComplexDataType cdt) | |
| Standard Constructor. | |
| PEBLObjectBase (const PEBLObjectBase &pob) | |
| virtual | ~PEBLObjectBase () |
| Standard Destructor. | |
| virtual bool | InitializeProperty (std::string name, Variant v) |
| virtual bool | SetProperty (std::string name, Variant v) |
| Variant | GetProperty (std::string) const |
| virtual ObjectValidationError | ValidateProperty (std::string, Variant v) const |
| virtual ObjectValidationError | ValidateProperty (std::string) const |
| ComplexDataType | GetType () |
| virtual std::string | ObjectName () const |
| virtual std::ostream & | PrintProperties (std::ostream &out) |
| virtual Variant | GetPropertyList () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
Protected Attributes | |
| std::string | mHostName |
| unsigned int | mHost |
| unsigned int | mPort |
| bool | mIsOpen |
Protected Attributes inherited from PEBLObjectBase | |
| ComplexDataType | mCDT |
| std::map< std::string, Variant > | mProperties |
This is the base File Stream class.
It is used to read and write files. It is also a subclass of PDevice, which means that it can be added to the event loop for interesting between-process communications, and probably even used as a basis for other input devices.
Definition at line 43 of file PNetwork.h.
| PNetwork::PNetwork | ( | ) |
The Standard constructor.
Definition at line 37 of file PNetwork.cpp.
References CDT_NETWORKCONNECTION, PEBLObjectBase::InitializeProperty(), and PEBLObjectBase::mCDT.
|
virtual |
|
virtual |
Definition at line 57 of file PNetwork.cpp.
Referenced by SetHostIP().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Reimplemented from PDevice.
Reimplemented in PlatformNetwork.
Definition at line 73 of file PNetwork.cpp.
|
virtual |
Definition at line 81 of file PNetwork.cpp.
References ConvertAddress(), mHost, and PEBLObjectBase::SetProperty().
|
virtual |
Definition at line 97 of file PNetwork.cpp.
References mHostName, and PEBLObjectBase::SetProperty().
|
virtual |
Definition at line 91 of file PNetwork.cpp.
References mIsOpen, and PEBLObjectBase::SetProperty().
|
virtual |
Definition at line 108 of file PNetwork.cpp.
References mPort, and PEBLObjectBase::SetProperty().
|
protected |
Definition at line 74 of file PNetwork.h.
Referenced by GetHost(), and SetHostIP().
|
protected |
Definition at line 73 of file PNetwork.h.
Referenced by GetHostName(), and SetHostName().
|
protected |
Definition at line 77 of file PNetwork.h.
|
protected |
Definition at line 75 of file PNetwork.h.