Otawa
0.10
|
#include </home/casse/otawa/otawa/src/odisplay/graphviz.h>
Public Member Functions | |
virtual String | attributes ()=0 |
calls attributes(const PropList& style) with the PropList containing the style of the item. More... | |
virtual void | setProps (const PropList &props) |
Protected Member Functions | |
virtual | ~GraphVizGraphElement (void) |
virtual bool | printAttribute (elm::io::Output &out, const PropList::Iter &prop) |
Process the Property given by the iterator pointing to it. More... | |
virtual String | getPropertiesString () |
Makes a string containing the values of all properties in _props separated by newlines. More... | |
virtual void | printOthersAttributes (elm::io::Output &out) |
Prints attributes after all the style PropList have been iterated. More... | |
virtual String | attributes (const PropList &props) |
Prints all attributes (styles) in a string, between brackets. More... | |
Protected Attributes | |
PropList | _props |
Properties of the attached object. More... | |
elm::genstruct::HashTable < const AbstractIdentifier *, int > | _include |
List of properties to print. More... | |
elm::genstruct::HashTable < const AbstractIdentifier *, int > | _exclude |
List of properties to hide. More... | |
bool | _defaultInclude |
true if the default is to include all properties More... | |
|
inlineprotectedvirtual |
Prints all attributes (styles) in a string, between brackets.
First iterates on the style PropList, calling printAttribute() for each property, and then, calls printOthersAttributes() to finish. This functions escapes all the newlines that have been appened in the functions printAttribute() and printOthersAttributes()
style | styles to be printed |
References buf, otawa::PropList::Iter::ended(), elm::StringBuffer::length(), otawa::display::GraphVizItem::printAttribute(), otawa::display::GraphVizItem::printOthersAttributes(), otawa::display::quoteNewlines(), and elm::StringBuffer::toString().
|
pure virtualinherited |
calls attributes(const PropList& style) with the PropList containing the style of the item.
Generally, the proplist is the object itself, because it inherits from PropList
Implemented in otawa::display::GraphVizGraph, otawa::display::GraphVizEdge, and otawa::display::GraphVizNode.
Referenced by otawa::display::GraphVizNode::attributes(), otawa::display::GraphVizEdge::attributes(), and otawa::display::GraphVizGraph::attributes().
|
protectedvirtualinherited |
Makes a string containing the values of all properties in _props separated by newlines.
References otawa::display::GraphVizItem::_defaultInclude, otawa::display::GraphVizItem::_exclude, otawa::display::GraphVizItem::_include, otawa::display::GraphVizItem::_props, buf, otawa::PropList::Iter::ended(), elm::StringBuffer::length(), elm::StringBuffer::print(), and elm::StringBuffer::toString().
Referenced by otawa::display::GraphVizNode::printOthersAttributes(), and otawa::display::GraphVizEdge::printOthersAttributes().
|
protectedvirtual |
Process the Property given by the iterator pointing to it.
Prints the value to the given output, or store the property for example (the property can be printed furthermore by printOthersAttributes())
out | output where to print when something have to be printed iterator on properties. Used to compare the identifier and to get the property value |
Reimplemented from otawa::display::GraphVizItem.
Reimplemented in otawa::display::GraphVizEdge, and otawa::display::GraphVizNode.
References otawa::display::FONT, otawa::display::FONT_COLOR, otawa::display::FONT_SIZE, otawa::display::GraphVizItem::printAttribute(), otawa::display::quoteSpecials(), otawa::display::STYLE, otawa::display::STYLE_BOLD, otawa::display::STYLE_DASHED, otawa::display::STYLE_DOTTED, otawa::display::STYLE_FILLED, and otawa::display::STYLE_PLAIN.
Referenced by otawa::display::GraphVizNode::printAttribute(), and otawa::display::GraphVizEdge::printAttribute().
|
protectedvirtualinherited |
Prints attributes after all the style PropList have been iterated.
One can append endlines to the output
out | output where to print others attributes |
Reimplemented in otawa::display::GraphVizGraph, otawa::display::GraphVizEdge, and otawa::display::GraphVizNode.
Referenced by otawa::display::GraphVizItem::attributes().
|
virtualinherited |
Reimplemented in otawa::display::GraphVizGraph, otawa::display::GraphVizEdge, and otawa::display::GraphVizNode.
References otawa::display::GraphVizItem::_props, otawa::PropList::addProps(), and otawa::PropList::clearProps().
Referenced by otawa::display::GraphVizNode::setProps(), otawa::display::GraphVizEdge::setProps(), and otawa::display::GraphVizGraph::setProps().
|
protectedinherited |
true if the default is to include all properties
Referenced by otawa::display::GraphVizItem::getPropertiesString(), and otawa::display::GraphVizItem::printAttribute().
|
protectedinherited |
List of properties to hide.
If the key exists, exclude the property
Referenced by otawa::display::GraphVizItem::getPropertiesString(), and otawa::display::GraphVizItem::printAttribute().
|
protectedinherited |
List of properties to print.
If the key exists, include the property
Referenced by otawa::display::GraphVizItem::getPropertiesString(), and otawa::display::GraphVizItem::printAttribute().
|
protectedinherited |
Properties of the attached object.
Referenced by otawa::display::GraphVizItem::getPropertiesString(), and otawa::display::GraphVizItem::setProps().