DUDS
Distributed Update of Data from Something
duds::ui::PathStringGenerator::TrucatedTitle Struct Reference

An internal data structure used to track the titles to include in the path string and the length of each string to use. More...

Collaboration diagram for duds::ui::PathStringGenerator::TrucatedTitle:

Public Member Functions

 TrucatedTitle ()=default
 
 TrucatedTitle (const std::string &t)
 
 TrucatedTitle (const std::string &t, std::string::size_type l)
 

Public Attributes

std::string::size_type len
 The length of the title. More...
 
const std::string * title
 The title string. More...
 

Detailed Description

An internal data structure used to track the titles to include in the path string and the length of each string to use.

It allows the length of the titles to be adjusted without copying or modifying strings.

Definition at line 200 of file PathStringGenerator.hpp.

Constructor & Destructor Documentation

◆ TrucatedTitle() [1/3]

duds::ui::PathStringGenerator::TrucatedTitle::TrucatedTitle ( )
default

◆ TrucatedTitle() [2/3]

duds::ui::PathStringGenerator::TrucatedTitle::TrucatedTitle ( const std::string &  t)
inline

Definition at line 210 of file PathStringGenerator.hpp.

◆ TrucatedTitle() [3/3]

duds::ui::PathStringGenerator::TrucatedTitle::TrucatedTitle ( const std::string &  t,
std::string::size_type  l 
)
inline

Definition at line 214 of file PathStringGenerator.hpp.

Member Data Documentation

◆ len

std::string::size_type duds::ui::PathStringGenerator::TrucatedTitle::len

The length of the title.

This does not include the ellipsis.

Definition at line 208 of file PathStringGenerator.hpp.

Referenced by duds::ui::PathStringGenerator::decTitleLen().

◆ title

const std::string* duds::ui::PathStringGenerator::TrucatedTitle::title

The title string.

Definition at line 204 of file PathStringGenerator.hpp.

Referenced by duds::ui::PathStringGenerator::decTitleLen().


The documentation for this struct was generated from the following file: