datatodb.h

来自「CCAMS系统是一种用于局域网下的C/S模式的软件管理和监测系统。它包括客户端和」· C头文件 代码 · 共 34 行

H
34
字号
#if !defined(AFX_DATATOBA_H__61CA7953_D769_4299_8C45_62UJK9102A__INCLUDED_)
#define AFX_DATATOBA_H__61CA7953_D769_4299_8C45_62UJK9102A__INCLUDED_


// DataToDB.h: interface and implementation of the DataToDB class.
// Funtion: for insert data recevied to tha DataBase
/////////////////////////////////////////////////////////////////////////////////

#include "ccams.h"

#include "SetClient.h"
#include "SetCPU.h"
#include "SetFile.h"
#include "SetMail.h"
#include "SetNet.h"
#include "SetProc.h"

class DataToDB
{
public:
	static bool AddClientData( LPCTSTR ip );
	static bool AddCpuData( LPCTSTR  client, LPCTSTR time, int usage );
	static bool AddFileData( LPCTSTR client, LPCTSTR time, 
		LPCTSTR action, LPCTSTR path );
	static bool AddMailData( LPCTSTR client, LPCTSTR time, LPCTSTR subject,
						   LPCTSTR sender, LPCTSTR recipient, LPCTSTR attach);
	static bool AddNetData( LPCTSTR client, LPCTSTR time, int repeat, 
		LPCTSTR direction,  LPCTSTR protocol, int tcpflag, 
		LPCTSTR address, int port, int size );
	static bool AddNProcData( LPCTSTR client, LPCTSTR time, 
		LPCTSTR action, LPCTSTR path );
};

#endif //!defined(AFX_DATATOBA_H__61CA7953_D769_4299_8C45_62UJK9102A__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?