Utils.h File Reference

Go to the source code of this file.

Classes

class  Util::ComPtr< T >
class  Util::SmartMultiPtr< t >
class  Util::Variant
union  Util::Variant::Value
class  Util::GenRefCounted
class  Util::GenRefCounter

Namespaces

namespace  Util

Defines

#define MGACOLL_ITERATE(iftype, collifptr)
#define MGACOLL_ITER   (*arrptr)
#define MGACOLL_AT_END   (arrptr == arrend)
#define MGACOLL_ITERATE_END

Functions

CComBSTR Util::Copy (const std::string &str)
std::string Util::Copy (const CComBSTR &bstr)
std::wstring Util::CopyW (const CComBSTR &bstr)
template<class T >
void Util::COMCHECK2 (const ComPtr< T > &p, const HRESULT hr)
Util::InfoOptionoperator++ (Util::InfoOption &eOption, int)
Util::InfoOptionoperator++ (Util::InfoOption &eOption)
bool isAll (const std::set< Util::InfoOption > &setOptions)
bool isNone (const std::set< Util::InfoOption > &setOptions)
Util::InfoOptions copy (const std::set< Util::InfoOption > &setOptions)
std::set< Util::InfoOptioncopy (Util::InfoOptions usOptions)

Define Documentation

#define MGACOLL_AT_END   (arrptr == arrend)

Definition at line 268 of file Utils.h.

#define MGACOLL_ITER   (*arrptr)

Definition at line 266 of file Utils.h.

#define MGACOLL_ITERATE ( iftype,
collifptr   ) 
Value:
{ \
        ASSERT( collifptr != NULL ); \
        long iter_count = 0; \
        COMTHROW( collifptr->get_Count(&iter_count) ); \
        ASSERT( iter_count >= 0 ); \
        CComPtr<iftype> *arrptr, *arrend, *array = new CComPtr<iftype>[iter_count]; \
        if(iter_count > 0) \
                COMTHROW( collifptr->GetAll(iter_count, &(*array)) ); \
        arrend = array+iter_count; \
        for(arrptr = array; arrptr != arrend; arrptr++)

Definition at line 254 of file Utils.h.

#define MGACOLL_ITERATE_END
Value:
delete[] array; \
}

Definition at line 270 of file Utils.h.


Function Documentation

std::set<Util::InfoOption> copy ( Util::InfoOptions  usOptions  ) 

Definition at line 256 of file Utils.cpp.

Util::InfoOptions copy ( const std::set< Util::InfoOption > &  setOptions  ) 

Definition at line 247 of file Utils.cpp.

bool isAll ( const std::set< Util::InfoOption > &  setOptions  ) 

Definition at line 225 of file Utils.cpp.

bool isNone ( const std::set< Util::InfoOption > &  setOptions  ) 

Definition at line 236 of file Utils.cpp.

Util::InfoOption& operator++ ( Util::InfoOption eOption  ) 

Definition at line 220 of file Utils.cpp.

Util::InfoOption& operator++ ( Util::InfoOption eOption,
int   
)

Definition at line 205 of file Utils.cpp.

Generated on Thu May 30 15:43:02 2013 for GME by  doxygen 1.6.3