#include <Identifier/ExpandedIdentifier.h>
#include <vector>
#include <string>
#include <stdexcept>
#include <iostream>
#include <limits>
#include <utility>
#include <variant>
Go to the source code of this file.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const IdentifierField & | c ) |
◆ operator>>()
Definition at line 497 of file IdentifierField.cxx.
497 {
498 idf.clear();
499 while (std::isspace(is.peek())){is.ignore();}
501 if (c =='*'){
502 is.ignore();
503
505 if (c =='+') is.ignore();
508
509 if (c == ','){
510 is.ignore();
511 std::vector<int>
vec(1,v);
513 vec.insert(
vec.end(), restOfList.begin(), restOfList.end());
515 } else if (c == ':'){
516 is.ignore();
520 idf.set(v,v1);
521 }
522 } else {
523 idf.add_value(v);
524 }
525 } else {
526 std::string
msg{
"Stream extraction for IdentifierField: "};
527 std::string remains;
528 is >> remains;
530 throw std::invalid_argument(
msg);
531 }
532 return is;
533}
std::vector< size_t > vec
bool isDigit(const char c)
IdentifierField::element_type parseStreamDigits(std::istream &is)
IdentifierField::element_vector parseStreamList(std::istream &is)