Values

symbol

#include "dxfio/symbol.hpp"

In DxfIO

class Symbol

A name records repeat, such as a layer, linetype, text style or block, stored once for the whole program. Symbols of the same text share it, so a copy costs a pointer and comparing two compares addresses.

Symbol()

The empty name.

explicit Symbol(std::string_view text)

The name with that text, case kept. A text not seen before joins a store every thread shares, for good.

explicit Symbol(const std::string &text)

The name with that text.

explicit Symbol(const char *text)

The name with that text, which must not be null.

auto View() const -> std::string_view

The text, valid for as long as the program runs.

auto Str() const -> const std::string &

The text as a string, valid for as long as the program runs.

auto Empty() const -> bool

Whether the text has no characters.