NArrayWrapper<NMethodInfo> GetDeclaredMethods(const NStringWrapper & name) const
	{
		HNMethodInfo * arhValues;
		NInt valueCount;
		NCheck(NObjectPartInfoGetDeclaredMethodsWithNameN(GetHandle(), name.GetHandle(), &arhValues, &valueCount));
		return NArrayWrapper<NMethodInfo>(arhValues, valueCount);
	}
Example #2
0
	static NInt32 Parse(const NType & type, const NStringWrapper & value, const NStringWrapper & format = NString())
	{
		NInt32 result;
		NCheck(NEnumParseN(type.GetHandle(), value.GetHandle(), format.GetHandle(), &result));
		return result;
	}
Example #3
0
	static bool TryParse(const NType & type, const NStringWrapper & value, const NStringWrapper & format, NInt32 * pValue)
	{
		NBool result;
		NCheck(NEnumTryParseN(type.GetHandle(), value.GetHandle(), format.GetHandle(), pValue, &result));
		return result != 0;
	}
Example #4
0
	static NString ToString(const NType & type, NInt32 value, const NStringWrapper & format = NString())
	{
		HNString hValue;
		NCheck(NEnumToStringN(type.GetHandle(), value, format.GetHandle(), &hValue));
		return NString(hValue, true);
	}
	void WriteToFile(const NStringWrapper & fileName)
	{
		NCheck(NDataFileBuilderWriteToFileN(GetHandle(), fileName.GetHandle()));
	}
	static NLicManDongleUpdateTicketInfo GetUpdateTicketInfo(const NStringWrapper & ticketNumber)
	{
		HNLicManDongleUpdateTicketInfo handle;
		NCheck(NLicManGetUpdateTicketInfoN(ticketNumber.GetHandle(), &handle));
		return NObject::FromHandle<NLicManDongleUpdateTicketInfo>(handle);
	}
	static void GetLicenseData(const NStringWrapper & id, NInt * pSequenceNumber, NUInt * pProductId, NInt * pDistributorId)
	{
		NCheck(NLicManGetLicenseDataN(id.GetHandle(), pSequenceNumber, pProductId, pDistributorId));
	}
	NOdbcBiometricConnection SetDatabaseConnectionToOdbc(const NStringWrapper & connectionString, const NStringWrapper & tableName)
	{
		HNOdbcBiometricConnection handle;
		NCheck(NBiometricClientSetDatabaseConnectionToOdbcN(GetHandle(), connectionString.GetHandle(), tableName.GetHandle(), &handle));
		return FromHandle<NOdbcBiometricConnection>(handle, true);
	}
	void SetVendorValue(const NStringWrapper & value)
	{
		NCheck(NStringSet(value.GetHandle(), &hVendorValue));
	}
	NEventInfo GetDeclaredEvent(const NStringWrapper & name) const
	{
		HNEventInfo hValue;
		NCheck(NObjectPartInfoGetDeclaredEventWithNameN(GetHandle(), name.GetHandle(), &hValue));
		return FromHandle<NEventInfo>(hValue);
	}
 void SetVersion(const NStringWrapper & value)
 {
     NCheck(NStringSet(value.GetHandle(), &hVersion));
 }
 void SetName(const NStringWrapper & value)
 {
     NCheck(NStringSet(value.GetHandle(), &hName));
 }