Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

Y2CCRemote Class Reference

#include <Y2CCRemote.h>

Inheritance diagram for Y2CCRemote:

Y2ComponentCreator List of all members.

Public Member Functions

 Y2CCRemote (bool creates_servers)
bool isServerCreator () const
Y2Componentcreate (const char *name) const
virtual Y2ComponentprovideNamespace (const char *name_space)

Private Member Functions

void make_rxs () const
void free_rxs () const
bool analyseURL (const char *componentname, string &protocol, string &loginname, string &password, string &hostname, string &cname) const

Private Attributes

bool creates_servers
regex_t rx1
regex_t rx2
regex_t rx3
int my_nl_msg_cat_cntr

Constructor & Destructor Documentation

Y2CCRemote::Y2CCRemote bool  creates_servers  ) 
 


Member Function Documentation

bool Y2CCRemote::analyseURL const char *  componentname,
string &  protocol,
string &  loginname,
string &  password,
string &  hostname,
string &  cname
const [private]
 

Analyses an URL of the form protocol://login:password/componentname

Parameters:
componentname URL
protocol Outputparam for the protocol (telnet, rsh, ssh)
loginname Outputparam for the login name
password Outputparam for the password
hostname Outputparam for the hostname
cname Outputparam for the component name on the remote host

Y2Component * Y2CCRemote::create const char *  name  )  const [virtual]
 

Override this method to implement the actual creating of the component. You must use the symbol and the signature of the term to decide, which component is to be created. If you are not able to create a matching component, return 0.

Reimplemented from Y2ComponentCreator.

void Y2CCRemote::free_rxs  )  const [private]
 

bool Y2CCRemote::isServerCreator  )  const [virtual]
 

Specifies, whether this creator creates Y2Servers.

Implements Y2ComponentCreator.

void Y2CCRemote::make_rxs  )  const [private]
 

Y2Component * Y2CCRemote::provideNamespace const char *  name_space  )  [virtual]
 

Importing a namespace from a remote subcomponent is not possible.

Reimplemented from Y2ComponentCreator.


Member Data Documentation

bool Y2CCRemote::creates_servers [private]
 

Specifies, whether to create server or client components.

int Y2CCRemote::my_nl_msg_cat_cntr [mutable, private]
 

regex_t Y2CCRemote::rx1 [mutable, private]
 

regular expression

regex_t Y2CCRemote::rx2 [mutable, private]
 

regular expression

regex_t Y2CCRemote::rx3 [mutable, private]
 

regular expression


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6