#include <Identifier/ExpandedIdentifier.h>
#include <vector>
#include <string>
#include <stdexcept>
#include <iosfwd>
#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 489 of file IdentifierField.cxx.
489 {
490 idf.clear();
491 while (std::isspace(is.peek())){is.ignore();}
493 if (c =='*'){
494 is.ignore();
495
497 if (c =='+') is.ignore();
500
501 if (c == ','){
502 is.ignore();
503 std::vector<int>
vec(1,v);
505 vec.insert(
vec.end(), restOfList.begin(), restOfList.end());
507 } else if (c == ':'){
508 is.ignore();
512 idf.set(v,v1);
513 }
514 } else {
515 idf.add_value(v);
516 }
517 } else {
518 std::string
msg{
"Stream extraction for IdentifierField: "};
519 std::string remains;
520 is >> remains;
522 throw std::invalid_argument(
msg);
523 }
524 return is;
525}
std::vector< size_t > vec
bool isDigit(const char c)
IdentifierField::element_type parseStreamDigits(std::istream &is)
IdentifierField::element_vector parseStreamList(std::istream &is)