当前位置: 首页>>代码示例>>C++>>正文


C++ LogText函数代码示例

本文整理汇总了C++中LogText函数的典型用法代码示例。如果您正苦于以下问题:C++ LogText函数的具体用法?C++ LogText怎么用?C++ LogText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了LogText函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: LogText

HRESULT OffscreenSurface::Unlock(
	LPVOID lpSurfaceData
	)
{
#if LOGGER
	std::ostringstream str;
	str << this << " " << __FUNCTION__;
	LogText(str.str());
#endif

	return DD_OK;
}
开发者ID:UIKit0,项目名称:xwa_ddraw_d3d11,代码行数:12,代码来源:OffscreenSurface.cpp

示例2: LogText

HRESULT Direct3DExecuteBuffer::Initialize(
	LPDIRECT3DDEVICE lpDirect3DDevice,
	LPD3DEXECUTEBUFFERDESC lpDesc
	)
{
	std::ostringstream str;
	str << this << " " << __FUNCTION__;

	LogText(str.str());

	return this->_original->Initialize(lpDirect3DDevice, lpDesc);
}
开发者ID:UIKit0,项目名称:xwa_ddraw_d3d11,代码行数:12,代码来源:Direct3DExecuteBuffer.cpp

示例3: LogText

HRESULT DirectDraw4::GetFourCCCodes(
	LPDWORD lpNumCodes,
	LPDWORD lpCodes
	)
{
	std::ostringstream str;
	str << this << " " << __FUNCTION__;

	LogText(str.str());

	return this->_original->GetFourCCCodes(lpNumCodes, lpCodes);
}
开发者ID:UIKit0,项目名称:xwa_ddraw_d3d11,代码行数:12,代码来源:DirectDraw4.cpp

示例4: OVR_UNUSED

//-----------------------------------------------------------------------------
void HIDDevice::closeDevice(bool wasUnplugged)
{
    OVR_UNUSED(wasUnplugged);
    OVR_ASSERT(DeviceHandle >= 0);
    
    HIDManager->DevManager->pThread->RemoveSelectFd(this,-1);

	hid_close(DeviceHandle);
	DeviceHandle = NULL;
        
    LogText("OVR::Linux::HIDDevice - HID Device Closed '%s'\n", DevDesc.Path.ToCStr());
}
开发者ID:sebjf,项目名称:OculusSDK_0.3.2_CentOS,代码行数:13,代码来源:OVR_Linux_HIDDevice.cpp

示例5: logpool_test_Write

static void logpool_test_Write(logpool_t *logpool)
{
    long   i = n;
    const char *s = "Good Bye";
    void *args;
    logpool_record(logpool, &args, LOG_NOTICE, "check",
                   LogText("string", s),
                   LogUint("tid",   i%10),
                   LOG_END
                  );
    n++;
}
开发者ID:kkuramitsu,项目名称:minikonoha,代码行数:12,代码来源:trace2.c

示例6: System_bind

//## int System.bind(int socket, String srcIP, int srcPort, int family);
KMETHOD System_bind(KonohaContext *kctx, KonohaStack* sfp)
{
	struct sockaddr_in addr;
	toSockaddr(&addr,
			S_text(sfp[2].asString),
			WORD2INT(sfp[3].intValue),
			WORD2INT(sfp[4].intValue)
	);
	int ret = bind(WORD2INT(sfp[1].intValue),
			(struct sockaddr *)&addr,
			sizeof(addr)
	);
	if(ret != 0) {
		OLDTRACE_SWITCH_TO_KTrace(_SystemFault,
			LogText("@", "bind"),
			LogUint("errno", errno),
			LogText("errstr", strerror(errno))
		);
	}
	KReturnUnboxValue(ret);
}
开发者ID:doly,项目名称:minikonoha,代码行数:22,代码来源:socket_glue.c

示例7: logpool_test_Write1

static void logpool_test_Write1(logpool_t *logpool)
{
    double f = 3.14;
    long   i = 128;
    const char *s = "hello world";
    logpool_record(logpool, NULL, LOG_NOTICE, "event",
            KEYVALUE_f("float", f),
            KEYVALUE_i("int",   i),
            LogText("string", s),
            LOG_END
            );
}
开发者ID:kkuramitsu,项目名称:minikonoha,代码行数:12,代码来源:filter.c

示例8: tostr_HR

HRESULT DirectDraw2::Compact()
{
	std::ostringstream str;
	str << this << " " << __FUNCTION__;

	HRESULT hr = this->_original->Compact();

	str << std::endl;
	str << tostr_HR(hr);

	LogText(str.str());
	return hr;
}
开发者ID:JeremyAnsel,项目名称:ddraw_logger,代码行数:13,代码来源:DirectDraw2.cpp

示例9: LogText

ULONG DirectDrawClipper::AddRef()
{
	std::ostringstream str;
	str << this << " " << __FUNCTION__;

	ULONG count = this->_original->AddRef();

	str << std::endl;
	str << "\t" << count;

	LogText(str.str());
	return count;
}
开发者ID:JeremyAnsel,项目名称:ddraw_logger,代码行数:13,代码来源:DirectDrawClipper.cpp

示例10: tostr_HR

HRESULT DirectDraw::FlipToGDISurface()
{
	std::ostringstream str;
	str << this << " " << __FUNCTION__;

	HRESULT hr = this->_original->FlipToGDISurface();

	str << std::endl;
	str << tostr_HR(hr);

	LogText(str.str());
	return hr;
}
开发者ID:JeremyAnsel,项目名称:ddraw_logger,代码行数:13,代码来源:DirectDraw.cpp

示例11: logpool_test_write

static void logpool_test_write(logpool_t *logpool)
{
    double f = 3.14;
    long   i = 128;
    const char *s = "hello world";
    logpool_record(logpool, NULL, LOG_NOTICE, "event",
            KEYVALUE_f("0:float", f),
            KEYVALUE_i("0:int",   i),
            LogText("0:string", s),
            KEYVALUE_f("1:float", f),
            KEYVALUE_i("1:int",   i),
            LogText("1:string", s),
            KEYVALUE_f("2:float", f),
            KEYVALUE_i("2:int",   i),
            LogText("2:string", s),
            KEYVALUE_f("3:float", f),
            KEYVALUE_i("3:int",   i),
            LogText("3:string", s),
            KEYVALUE_f("4:float", f),
            KEYVALUE_i("4:int",   i),
            LogText("4:string", s),
            KEYVALUE_f("5:float", f),
            KEYVALUE_i("5:int",   i),
            LogText("5:string", s),
            KEYVALUE_f("6:float", f),
            KEYVALUE_i("6:int",   i),
            LogText("6:string", s),
            KEYVALUE_f("7:float", f),
            KEYVALUE_i("7:int",   i),
            LogText("7:string", s),
            KEYVALUE_f("8:float", f),
            KEYVALUE_i("8:int",   i),
            LogText("8:string", s),
            KEYVALUE_f("9:float", f),
            KEYVALUE_i("9:int",   i),
            LogText("9:string", s),
            LOG_END
            );
}
开发者ID:shinpei,项目名称:minikonoha,代码行数:39,代码来源:large_fmtdata.c

示例12: LogText

HRESULT BackbufferSurface::DeleteAttachedSurface(
	DWORD dwFlags,
	LPDIRECTDRAWSURFACE lpDDSAttachedSurface
	)
{
#if LOGGER
	std::ostringstream str;
	str << this << " " << __FUNCTION__;
	LogText(str.str());
#endif

	if (lpDDSAttachedSurface == nullptr)
	{
#if LOGGER
		str.str("\tDD_OK");
		LogText(str.str());
#endif

		return DD_OK;
	}

	if (lpDDSAttachedSurface == (LPDIRECTDRAWSURFACE)this->_deviceResources->_depthSurface)
	{
#if LOGGER
		str.str("\tDD_OK");
		LogText(str.str());
#endif

		return DD_OK;
	}

#if LOGGER
	str.str("\tDDERR_UNSUPPORTED");
	LogText(str.str());
#endif

	return DDERR_UNSUPPORTED;
}
开发者ID:UIKit0,项目名称:xwa_ddraw_d3d11,代码行数:38,代码来源:BackbufferSurface.cpp

示例13: LogText

HRESULT TextureSurface::GetSurfaceDesc(
	LPDDSURFACEDESC lpDDSurfaceDesc
	)
{
#if LOGGER
	std::ostringstream str;
	str << this << " " << __FUNCTION__;
	LogText(str.str());
#endif

	if (lpDDSurfaceDesc == nullptr)
	{
#if LOGGER
		str.str("\tDDERR_INVALIDPARAMS");
		LogText(str.str());
#endif

		return DDERR_INVALIDPARAMS;
	}

	*lpDDSurfaceDesc = {};
	lpDDSurfaceDesc->dwSize = sizeof(DDSURFACEDESC);
	lpDDSurfaceDesc->dwFlags = DDSD_CAPS | DDSD_PIXELFORMAT | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PITCH | DDSD_MIPMAPCOUNT;
	lpDDSurfaceDesc->ddsCaps.dwCaps = DDSCAPS_TEXTURE | DDSCAPS_MIPMAP | DDSCAPS_SYSTEMMEMORY;
	lpDDSurfaceDesc->ddpfPixelFormat = this->_pixelFormat;
	lpDDSurfaceDesc->dwHeight = this->_height;
	lpDDSurfaceDesc->dwWidth = this->_width;
	lpDDSurfaceDesc->lPitch = this->_width * this->_pixelFormat.dwRGBBitCount / 8;
	lpDDSurfaceDesc->dwMipMapCount = this->_mipmapCount;

#if LOGGER
	str.str("");
	str << "\t" << tostr_DDSURFACEDESC(lpDDSurfaceDesc);
	LogText(str.str());
#endif

	return DD_OK;
}
开发者ID:JeremyAnsel,项目名称:xwa_ddraw_d3d11,代码行数:38,代码来源:TextureSurface.cpp

示例14: LogText

bool HIDDevice::HIDInitialize(const String& path)
{

    DevDesc.Path = path;

    if (!openDevice())
    {
        LogText("OVR::Win32::HIDDevice - Failed to open HIDDevice: ", path);
        return false;
    }


    HIDManager->Manager->pThread->AddTicksNotifier(this);
    HIDManager->Manager->pThread->AddMessageNotifier(this);

    LogText("OVR::Win32::HIDDevice - Opened '%s'\n"
            "                    Manufacturer:'%s'  Product:'%s'  Serial#:'%s'\n",
            DevDesc.Path.ToCStr(),
            DevDesc.Manufacturer.ToCStr(), DevDesc.Product.ToCStr(),
            DevDesc.SerialNumber.ToCStr());

    return true;
}
开发者ID:josephwinston,项目名称:minko,代码行数:23,代码来源:OVR_Win32_HIDDevice.cpp

示例15: System_stat

//## Stat System.stat(String path)
static KMETHOD System_stat(KonohaContext *kctx, KonohaStack *sfp)
{
	KMakeTrace(trace, sfp);
	char buffer[K_PATHMAX];
	kString *path = sfp[1].asString;
	const char *systemPath = PLATAPI I18NModule.formatSystemPath(kctx, buffer, sizeof(buffer), kString_text(path), kString_size(path), trace);
	struct stat buf = {}; /* zero */
	int ret = stat(systemPath, &buf);
	if(ret == -1) {
		int fault = KLIB DiagnosisFaultType(kctx, kString_GuessUserFault(path)|SystemError, trace);
		KTraceErrorPoint(trace, fault, "stat", LogText("path", kString_text(path)), LogErrno);
	}
	KReturn(KLIB new_kObject(kctx, OnStack, KGetReturnType(sfp), (uintptr_t)&buf));
}
开发者ID:masakiishii,项目名称:minikonoha,代码行数:15,代码来源:stat_glue.c


注:本文中的LogText函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。