Guid.h revision 10a17670b96a3e6ddaa9ffe524882f600bd41259
/** @file
* MS COM / XPCOM Abstraction Layer:
* Guid class declaration
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___VBox_com_Guid_h
#define ___VBox_com_Guid_h
#if !defined (RT_OS_WINDOWS)
#include <nsMemory.h>
#endif
{
/**
* Helper class that represents the UUID type and hides platform-siecific
* implementation details.
*/
{
::RTUuidClear (&uuid);
}
return *this;
}
return *this;
}
return *this;
}
return *this;
}
char buf [RTUUID_STR_LENGTH];
}
// to pass instances as GUIDPARAM parameters to interface methods
// to directly pass instances to CFGLDRQueryUUID()
// to pass instances to printf-like functions
// to pass instances to RTUuid*() as a constant argument
#if defined(RT_OS_WINDOWS)
// to assign instances to GUIDPARAMOUT parameters from within the interface method
return *this;
}
// to pass instances as GUIDPARAMOUT parameters to interface methods
#else
// to assign instances to GUIDPARAMOUT parameters from within the interface method
return *this;
}
// internal helper class for asOutParam()
~GuidOutParam() {
}
};
// to pass instances as GUIDPARAMOUT parameters to interface methods
#endif
// to directly test GUIDPARAM interface method's parameters
};
#if defined (_MSC_VER)
// work around error C2593 of the stupid MSVC 7.x ambiguity resolver
#endif
} /* namespace com */
#endif