80 THROW_ASSERT(_size.find(
"SIZE") != std::string::npos, _size);
81 THROW_ASSERT(_size.find(
"(") != std::string::npos, _size);
82 THROW_ASSERT(_size.find(
")") != std::string::npos, _size);
83 const auto temp = _size.substr(_size.find(
'(') + 1);
84 const auto temp2 = temp.substr(0, temp.find(
')'));
85 size = std::stoul(temp2);
106 THROW_ASSERT(_size.find(
"SIZE") != std::string::npos, _size);
107 THROW_ASSERT(_size.find(
"(") != std::string::npos, _size);
108 THROW_ASSERT(_size.find(
")") != std::string::npos, _size);
109 const auto temp = _size.substr(_size.find(
'(') + 1);
110 const auto temp2 = temp.substr(0, temp.find(
')'));
111 size = std::stoul(temp2);
RealAsnType()
Constructor.
SetAsnType(std::list< std::pair< std::string, AsnTypeRef >> _fields)
Constructor.
size_t size
The number of elements in the sequence.
SetOfAsnType(std::string element, const std::string &size)
Constructor.
~OctetStringAsnType() override
Destructor.
exceptions managed by PandA
Definition of hash function for EdgeDescriptor.
SequenceAsnType(std::list< std::pair< std::string, AsnTypeRef >> _fields)
Constructor.
OctetStringAsnType(const std::string &size)
Constructor.
const AsnType_Kind kind
The actual kind.
AsnType(const AsnType_Kind kind)
Constructor.
ChoiceAsnType(std::list< std::pair< std::string, AsnTypeRef >> element_type_list)
Constructor.
virtual ~AsnType()
Destructor.
AsnType_Kind GetKind()
Return the type.
BooleanAsnType()
Constructor.
IntegerAsnType()
Constructor.
Data classes storing information for asn types.
RedefineAsnType(std::string name)
Constructor.
EnumeratedAsnType(std::list< std::pair< std::string, unsigned int >> named_number_list)
Constructor.
SequenceOfAsnType(std::string element, const std::string &size)
Constructor.
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...