src/libYARP_OS/src/mesh.cpp
MeshLink *Mesh::LabelledLink ( const YARPString& label )
{
	MeshLink
		*link = NULL;

	if ( !(label==NullName))
	{
		link = FindByLabel ( label );
		if ( link == NULL )
		{
			link = CreateLink();
			if ( link != NULL )
			{
				link->SetLabel ( label );
				link->SetOwner ( this );
			}
		}
	}

	return link;
}
/*-----------------------------------------------------------------------------
Function	LabelledLink
                                                                           
Description	Searches for a given link, and creates it if it isn't found

Input		label			The name of thelink

Returns		A pointer to the new if it was created successfully or found,
			otherwise NULL
-----------------------------------------------------------------------------*/
Function        LabelledLink
Description     Searches for a given link, and creates it if it isn't found

Input           label                   The name of thelink

Returns         A pointer to the new if it was created successfully or found,
otherwise NULL
Function LabelledLink Description Searches for a given link and creates it if it isn ' t found Input label The name of thelink Returns A pointer to the new if it was created successfully or found otherwise NULL
MeshLink *Mesh::LabelledLink ( const YARPString& label )
{
	MeshLink
		*link = NULL;
	if ( !(label==NullName))
	{
		link = FindByLabel ( label );
		if ( link == NULL )
		{
			link = CreateLink();
			if ( link != NULL )
			{
				link->SetLabel ( label );
				link->SetOwner ( this );
			}
		}
	}
	return link;
}
MeshLink * Mesh :: LabelledLink ( const YARPString & label ) { MeshLink * link = NULL ; if ( ! ( label == NullName ) ) { link = FindByLabel ( label ) ; if ( link == NULL ) { link = CreateLink ( ) ; if ( link != NULL ) { link -> SetLabel ( label ) ; link -> SetOwner ( this ) ; } } } return link ; }
Function        LabelledLink
Description     Searches for a given link, and creates it if it isn't found
Function LabelledLink Description Searches for a given link and creates it if it isn ' t found