port_rep Class Reference

#include <port.hpp>

Inheritance diagram for port_rep:
rep_struct composite_port_rep error_port_rep formatting_port_rep input_output_string_port_rep input_string_port_rep output_string_port_rep posix_port_rep file_port_rep pipe_port_rep socket_port_rep

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Definition at line 34 of file port.hpp.


Constructor & Destructor Documentation

port_rep (  )  [inline]

Definition at line 53 of file port.hpp.

00053 {}

virtual ~port_rep (  )  [inline, virtual]

Definition at line 54 of file port.hpp.

00054 {}


Member Function Documentation

port accept (  )  [virtual]

Reimplemented in socket_port_rep.

Definition at line 88 of file port.cpp.

References ERROR, port_rep::expression(), mmx::lf, and mmx::mmerr.

00088                   {
00089   mmerr << "port= " << expression () << lf;
00090   ERROR ("socket server port expected");
00091 }

bool busy (  )  [virtual]

Reimplemented in posix_port_rep, composite_port_rep, file_port_rep, formatting_port_rep, output_string_port_rep, input_string_port_rep, and input_output_string_port_rep.

Definition at line 49 of file port.cpp.

00049                 {
00050   return false;
00051 }

nat can_read (  )  [virtual]

Reimplemented in posix_port_rep, composite_port_rep, file_port_rep, formatting_port_rep, input_string_port_rep, and input_output_string_port_rep.

Definition at line 59 of file port.cpp.

00059                     {
00060   return 0;
00061 }

nat can_write (  )  [virtual]

Reimplemented in posix_port_rep, composite_port_rep, file_port_rep, formatting_port_rep, output_string_port_rep, and input_output_string_port_rep.

Definition at line 54 of file port.cpp.

00054                      {
00055   return 0;
00056 }

port component ( const string name  )  [virtual]

Reimplemented in composite_port_rep, and formatting_port_rep.

Definition at line 94 of file port.cpp.

References ERROR, port_rep::expression(), mmx::lf, and mmx::mmerr.

00094                                        {
00095   mmerr << "port= " << expression () << lf;
00096   ERROR ("composite port expected");
00097 }

bool error_flag (  )  [virtual]

Reimplemented in composite_port_rep, formatting_port_rep, and error_port_rep.

Definition at line 39 of file port.cpp.

00039                       {
00040   return false;
00041 }

string error_message (  )  [virtual]

Reimplemented in composite_port_rep, formatting_port_rep, and error_port_rep.

Definition at line 44 of file port.cpp.

00044                          {
00045   return "";
00046 }

virtual syntactic expression (  )  const [pure virtual]
void flush (  )  [virtual]

Reimplemented in composite_port_rep, file_port_rep, and formatting_port_rep.

Definition at line 84 of file port.cpp.

00084                  {
00085 }

void format ( const print_format fm  )  [virtual]

Reimplemented in formatting_port_rep.

Definition at line 100 of file port.cpp.

References ERROR, port_rep::expression(), mmx::lf, and mmx::mmerr.

00100                                         {
00101   mmerr << "port= " << expression () << lf;
00102   ERROR ("formatting port expected");  
00103 }

bool is_input_port (  )  [virtual]

Reimplemented in posix_port_rep, composite_port_rep, formatting_port_rep, input_string_port_rep, and input_output_string_port_rep.

Definition at line 34 of file port.cpp.

00034                          {
00035   return false;
00036 }

bool is_output_port (  )  [virtual]

Reimplemented in posix_port_rep, composite_port_rep, formatting_port_rep, output_string_port_rep, and input_output_string_port_rep.

Definition at line 29 of file port.cpp.

00029                           {
00030   return false;
00031 }

virtual void read ( char *  s,
nat  n 
) [virtual]
bool wait ( int  msecs  )  [virtual]

Reimplemented in posix_port_rep, composite_port_rep, and formatting_port_rep.

Definition at line 78 of file port.cpp.

00078                          {
00079   (void) msecs;
00080   return false;
00081 }

virtual void write ( const char *  s,
nat  n 
) [virtual]

Member Data Documentation

MMX_ALLOCATORS int ref_count [inherited]

Definition at line 164 of file basix.hpp.


The documentation for this class was generated from the following files:

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1