37 #ifndef Alembic_AbcCoreAbstract_MetaData_h
38 #define Alembic_AbcCoreAbstract_MetaData_h
43 namespace AbcCoreAbstract {
111 m_tokenMap = iCopy.m_tokenMap;
126 m_tokenMap.
setUnique( iFrom,
';',
'=',
true );
134 return m_tokenMap.
get(
';',
'=',
true );
184 else if ( found != iData )
186 ABCA_THROW(
"Key: " << iKey <<
" already exists in MetaData" );
194 return m_tokenMap.
value( iKey );
204 ABCA_THROW(
"Key: " << iKey <<
" did not exist in MetaData" );
214 iter != iMetaData.
end(); ++iter )
216 set( (*iter).first, (*iter).second );
225 iter != iMetaData.
end(); ++iter )
229 set( (*iter).first, (*iter).second );
239 iter != iMetaData.
end(); ++iter )
241 setUnique( (*iter).first, (*iter).second );
259 iter != iMetaData.
end(); ++iter )
261 if (
get( (*iter).first ) != (*iter).second )
274 iter != iMetaData.
end(); ++iter )
277 if ( found !=
"" && found != (*iter).second )
290 return m_tokenMap.
exactMatch( iMetaData.m_tokenMap );
reverse_iterator rbegin()
same as std::map rbegin Returns an reverse_iterator corresponding to the reverse_beginning of the map...
void setUnique(const std::string &config, char pairSeparator= ';', char assignSeparator= '=', bool quiet=true)
This function sets only unique (not already stored) token/value pairs by deserializing them from a do...
void setValue(const std::string &keyStr, const std::string &valueStr)
This function sets the value of a token. It will either add a new token-value pair if the map does no...
map_type::const_iterator const_iterator
GLsizei const GLchar *const * string
bool tokenExists(const std::string &token) const
This function returns whether the map contains an entry for a particular token.
size_t size() const
This function returns the number of pairs. ...
map_type::const_reference const_reference
iterator begin()
same as std::map begin Returns an iterator corresponding to the beginning of the map or the end of th...
A wrapper around std::map that serializes and deserializes the map into a doubly-tokenized string...
iterator end()
same as std::map end Returns an iterator corresponding to the end of the map.
map_type::const_reverse_iterator const_reverse_iterator
std::string get(char pairSeparator= ';', char assignSeparator= '=', bool check=false) const
This function turns the map back into a doubly-tokenized string.
map_type::value_type value_type
map_type::key_type key_type
bool exactMatch(const TokenMap &iOther) const
std::string value(const std::string &token) const
This function returns the string value associated with a particular token, or the empty string "" if ...
reverse_iterator rend()
same as std::map rend Returns an reverse_iterator corresponding to the reverse end of the map...
#define ALEMBIC_VERSION_NS