Tulip  4.6.0
Better Visualization Through Research
tlp::VectorPropertyInterface Class Reference

#include <PropertyInterface.h>

+ Inheritance diagram for tlp::VectorPropertyInterface:
+ Collaboration diagram for tlp::VectorPropertyInterface:

List of all members.

Public Member Functions

virtual bool setEdgeStringValueAsVector (const edge e, const std::string &value, char openChar= '(', char sepChar= ',', char closeChar= ')')=0
virtual bool setNodeStringValueAsVector (const node n, const std::string &value, char openChar= '(', char sepChar= ',', char closeChar= ')')=0

Detailed Description

VectorPropertyInterface describes the interface of a graph property whose holded value is a vector (std::vector)

Definition at line 474 of file PropertyInterface.h.


Member Function Documentation

virtual bool tlp::VectorPropertyInterface::setEdgeStringValueAsVector ( const edge  e,
const std::string &  value,
char  openChar = '(',
char  sepChar = ',',
char  closeChar = ')' 
) [pure virtual]

Sets a new vector described by the string parameter as the edge value.

Parameters:
eThe edge on which to set value on.
valueA string listing the elements of the vector to set on the edge.
openCharan optional character opening the list of elements. Default value is '('; when set to '\0' it indicates that there is no opening character.
sepCharan optional character separing the elements of the list. Default value is ','.
closeCharan optional character closing the list of elements. Default value is ')'; when set to '\0' it indicates that there is no opening character.
Returns:
Whether the string was a correct representation for this property's type. If not, the value is not set.
virtual bool tlp::VectorPropertyInterface::setNodeStringValueAsVector ( const node  n,
const std::string &  value,
char  openChar = '(',
char  sepChar = ',',
char  closeChar = ')' 
) [pure virtual]

Sets a new vector described by the string parameter as the node value.

Parameters:
nThe node on which to set the new value.
valueA string listing the elements of the vector to set on the node.
openCharan optional character opening the list of elements. Default value is '('; when set to '\0' it indicates that there is no opening character.
sepCharan optional character separing the elements of the list. Default value is ','.
closeCharan optional character closing the list of elements. Default value is ')'; when set to '\0' it indicates that there is no opening character.
Returns:
Whether the string was a correct representation for this property's type. If not, the value is not set.
 All Classes Files Functions Variables Enumerations Enumerator Properties