Minsky
anonymous_namespace{CSVParser.cc}::DuplicateKey Struct Reference
Inheritance diagram for anonymous_namespace{CSVParser.cc}::DuplicateKey:
Inheritance graph
Collaboration diagram for anonymous_namespace{CSVParser.cc}::DuplicateKey:
Collaboration graph

Public Member Functions

 DuplicateKey (const Key &x, const Tokens< SliceLabelToken > &tokens)
 
const char * what () const noexcept override
 

Public Attributes

std::string msg ="Duplicate key"
 
Key key
 

Detailed Description

Definition at line 233 of file CSVParser.cc.

Constructor & Destructor Documentation

◆ DuplicateKey()

anonymous_namespace{CSVParser.cc}::DuplicateKey::DuplicateKey ( const Key x,
const Tokens< SliceLabelToken > &  tokens 
)
inline

Definition at line 237 of file CSVParser.cc.

237  : key(x) {
238  for (auto& i: x)
239  msg+=":"+tokens[i];
240  msg+="\nTry selecting a different duplicate key action";
241  }

Member Function Documentation

◆ what()

const char* anonymous_namespace{CSVParser.cc}::DuplicateKey::what ( ) const
inlineoverridenoexcept

Definition at line 242 of file CSVParser.cc.

242 {return msg.c_str();}

Member Data Documentation

◆ key

Key anonymous_namespace{CSVParser.cc}::DuplicateKey::key

Definition at line 236 of file CSVParser.cc.

◆ msg

std::string anonymous_namespace{CSVParser.cc}::DuplicateKey::msg ="Duplicate key"

Definition at line 235 of file CSVParser.cc.


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