Public Member Functions | List of all members
DSNAttributes Class Reference

DSNAttributes collects MSI attributes and translates them onto an attribute string. More...

#include <DSNAttributes.h>

Public Member Functions

 DSNAttributes (MSIHANDLE hInstall)
 
void AddPropertyValue (const std::wstring &property_name, const std::wstring &attribute_name, bool blank=false)
 add the value of property_name as attribute_name to DSN_ATTRIBUTES More...
 
std::wstring GetAttributes () const
 get the attributes value string More...
 
 DSNAttributes ()
 
void Add (const std::wstring &namevaluepair)
 add a value of format name=value More...
 
void AddRange (const std::vector< std::wstring > &namevaluepairs)
 add an array of values of format name=value More...
 
std::wstring GetAttributes () const
 get the attributes value string More...
 

Detailed Description

DSNAttributes collects MSI attributes and translates them onto an attribute string.

DSNAttributes collects MSI attributes and translates them onto a DSN_ATTRIBUTES string

Constructor & Destructor Documentation

DSNAttributes::DSNAttributes ( MSIHANDLE  hInstall)
DSNAttributes::DSNAttributes ( )

Member Function Documentation

void DSNAttributes::Add ( const std::wstring &  namevaluepair)

add a value of format name=value

void DSNAttributes::AddPropertyValue ( const std::wstring &  property_name,
const std::wstring &  attribute_name,
bool  blank = false 
)

add the value of property_name as attribute_name to DSN_ATTRIBUTES

void DSNAttributes::AddRange ( const std::vector< std::wstring > &  namevaluepairs)

add an array of values of format name=value

std::wstring DSNAttributes::GetAttributes ( ) const

get the attributes value string

std::wstring DSNAttributes::GetAttributes ( ) const

get the attributes value string


The documentation for this class was generated from the following files:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com