Function PushAttribute

Summary

#include <tinyxml2.h>

(1) void PushAttribute(const char *name, const char *value)

(2) void PushAttribute(const char *name, int value)

(3) void PushAttribute(const char *name, unsigned value)

(4) void PushAttribute(const char *name, int64_t value)

(5) void PushAttribute(const char *name, uint64_t value)

(6) void PushAttribute(const char *name, bool value)

(7) void PushAttribute(const char *name, double value)

Function overload

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, const char *value)

Description

If streaming, add an attribute to an open element.

Mentioned in

Source

Lines 2693-2701 in tinyxml2.cpp. Line 2256 in tinyxml2.h.

void XMLPrinter::PushAttribute( const char* name, const char* value )
{
    TIXMLASSERT( _elementJustOpened );
    Putc ( ' ' );
    Write( name );
    Write( "=\"" );
    PrintString( value, false );
    Putc ( '\"' );
}

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, int value)

Description

No description yet.

Mentioned in

Source

Lines 2704-2709 in tinyxml2.cpp. Line 2257 in tinyxml2.h.

void XMLPrinter::PushAttribute( const char* name, int v )
{
    char buf[BUF_SIZE];
    XMLUtil::ToStr( v, buf, BUF_SIZE );
    PushAttribute( name, buf );
}

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, unsigned value)

Description

No description yet.

Mentioned in

Source

Lines 2712-2717 in tinyxml2.cpp. Line 2258 in tinyxml2.h.

void XMLPrinter::PushAttribute( const char* name, unsigned v )
{
    char buf[BUF_SIZE];
    XMLUtil::ToStr( v, buf, BUF_SIZE );
    PushAttribute( name, buf );
}

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, int64_t value)

Description

No description yet.

Mentioned in

Source

Lines 2720-2725 in tinyxml2.cpp. Line 2259 in tinyxml2.h.

void XMLPrinter::PushAttribute(const char* name, int64_t v)
{
    char buf[BUF_SIZE];
    XMLUtil::ToStr(v, buf, BUF_SIZE);
    PushAttribute(name, buf);
}

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, uint64_t value)

Description

No description yet.

Mentioned in

Source

Lines 2728-2733 in tinyxml2.cpp. Line 2260 in tinyxml2.h.

void XMLPrinter::PushAttribute(const char* name, uint64_t v)
{
    char buf[BUF_SIZE];
    XMLUtil::ToStr(v, buf, BUF_SIZE);
    PushAttribute(name, buf);
}

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, bool value)

Description

No description yet.

Mentioned in

Source

Lines 2736-2741 in tinyxml2.cpp. Line 2261 in tinyxml2.h.

void XMLPrinter::PushAttribute( const char* name, bool v )
{
    char buf[BUF_SIZE];
    XMLUtil::ToStr( v, buf, BUF_SIZE );
    PushAttribute( name, buf );
}

Synopsis

#include <tinyxml2.h>

void PushAttribute(const char *name, double value)

Description

No description yet.

Mentioned in

Source

Lines 2744-2749 in tinyxml2.cpp. Line 2262 in tinyxml2.h.

void XMLPrinter::PushAttribute( const char* name, double v )
{
    char buf[BUF_SIZE];
    XMLUtil::ToStr( v, buf, BUF_SIZE );
    PushAttribute( name, buf );
}





Add Discussion as Guest

Log in