Doxygen
Loading...
Searching...
No Matches
dotclassgraph.cpp File Reference
#include "dotclassgraph.h"
#include <algorithm>
#include "classdef.h"
#include "config.h"
#include "containers.h"
#include "dotnode.h"
#include "message.h"
#include "textstream.h"
#include "util.h"
Include dependency graph for dotclassgraph.cpp:

Go to the source code of this file.

Functions

static DString joinLabels (const StringSet &ss)

Function Documentation

◆ joinLabels()

DString joinLabels ( const StringSet & ss)
static

Definition at line 235 of file dotclassgraph.cpp.

236{
237 DString label;
238 int count=1;
239 int maxLabels = Config_getInt(UML_MAX_EDGE_LABELS);
240 auto it = std::begin(ss), e = std::end(ss);
241 if (it!=e) // set not empty
242 {
243 label = *it++;
244 for (; it!=e && (maxLabels==0 || count<maxLabels) ; ++it,++count)
245 {
246 label += '\n';
247 label += *it;
248 }
249 if (maxLabels!=0 && count==maxLabels)
250 {
251 label+="\n ...";
252 }
253 }
254 return label;
255}
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:84
#define Config_getInt(name)
Definition config.h:34

References Config_getInt.

Referenced by DotClassGraph::buildGraph().