basix_doc 0.1
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 32 of file port.hpp.


Constructor & Destructor Documentation

port_rep ( ) [inline]

Definition at line 51 of file port.hpp.

{}
virtual ~port_rep ( ) [inline, virtual]

Definition at line 52 of file port.hpp.

{}

Member Function Documentation

port accept ( ) [virtual]

Reimplemented in socket_port_rep.

Definition at line 87 of file port.cpp.

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

                  {
  mmerr << "port= " << expression () << lf;
  ERROR ("socket server port expected");
}
bool busy ( ) [virtual]
nat can_read ( ) [virtual]
nat can_write ( ) [virtual]
port component ( const string name) [virtual]

Reimplemented in composite_port_rep, and formatting_port_rep.

Definition at line 93 of file port.cpp.

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

                                       {
  mmerr << "port= " << expression () << lf;
  ERROR ("composite port expected");
}
bool error_flag ( ) [virtual]

Reimplemented in composite_port_rep, formatting_port_rep, and error_port_rep.

Definition at line 38 of file port.cpp.

                      {
  return false;
}
string error_message ( ) [virtual]

Reimplemented in composite_port_rep, formatting_port_rep, and error_port_rep.

Definition at line 43 of file port.cpp.

                         {
  return "";
}
void flush ( ) [virtual]

Reimplemented in composite_port_rep, file_port_rep, and formatting_port_rep.

Definition at line 83 of file port.cpp.

                 {
}
void format ( const print_format fm) [virtual]

Reimplemented in formatting_port_rep.

Definition at line 99 of file port.cpp.

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

                                        {
  mmerr << "port= " << expression () << lf;
  ERROR ("formatting port expected");  
}
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 33 of file port.cpp.

                         {
  return false;
}
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 28 of file port.cpp.

                          {
  return false;
}
void read ( char *  s,
nat  n 
) [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 70 of file port.cpp.

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

                              {
  (void) n;
  mmerr << "port= " << expression () << lf;
  ERROR ("input port expected");
}
bool wait ( int  msecs) [virtual]

Reimplemented in posix_port_rep, composite_port_rep, and formatting_port_rep.

Definition at line 77 of file port.cpp.

                         {
  (void) msecs;
  return false;
}
void write ( const char *  s,
nat  n 
) [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 63 of file port.cpp.

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

                                     {
  (void) s; (void) n;
  mmerr << "port= " << expression () << lf;
  ERROR ("output port expected");
}

Member Data Documentation

MMX_ALLOCATORS int ref_count [inherited]

Definition at line 138 of file basix.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines