| 295 | |
| 296 | //! Causes the type to be appended as an attribute to the most recently made node if output type is set to true |
| 297 | template <class T> inline |
| 298 | void insertType() |
| 299 | { |
| 300 | if( !itsOutputType ) |
| 301 | return; |
| 302 | |
| 303 | // generate a name for this new node |
| 304 | const auto nameString = util::demangledName<T>(); |
| 305 | |
| 306 | // allocate strings for all of the data in the XML object |
| 307 | auto namePtr = itsXML.allocate_string( nameString.data(), nameString.length() + 1 ); |
| 308 | |
| 309 | itsNodes.top().node->append_attribute( itsXML.allocate_attribute( "type", namePtr ) ); |
| 310 | } |
| 311 | |
| 312 | //! Appends an attribute to the current top level node |
| 313 | void appendAttribute( const char * name, const char * value ) |
nothing calls this directly
no test coverage detected