⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dump.cpp

📁 Mysql的处理
💻 CPP
📖 第 1 页 / 共 2 页
字号:
//		fprintf(fp,"  LocationAreaCode: %s\n",p->ChangeOfLocation[i].LocationAreaCode);//		fprintf(fp,"  RoutingAreaCode: %s\n",p->ChangeOfLocation[i].RoutingAreaCode);//		fprintf(fp,"  CellIdentity: %s\n",p->ChangeOfLocation[i].CellIdentity);//		fprintf(fp,"  ChangeTime: %s\n",p->ChangeOfLocation[i].ChangeTime);//	}//	fprintf(fp,"   }\n");		fprintf(fp,"RecordOpeningTime: %s\n",p->RecordOpenTime);			//fprintf(fp,"Duration               ::%s\n",p->d);	fprintf(fp,"SgsnChange: %d\n",p->SGSNChange);	fprintf(fp,"CauseForRecClosing: %s\n",p->CauseForRecClosing);	fprintf(fp,"Diagnostics: %s\n",p->Diagnostics);	fprintf(fp,"RecordSequenceNumber: %s\n",p->RecordSequenceNumber);	fprintf(fp,"NodeID: %s\n",p->NodeId);	fprintf(fp,"RecordExtensions: %s\n",p->RecordExtensions);	fprintf(fp,"LocalRecordSequenceNumber: %s\n",p->LocalRecordSequeceNumnber);	fprintf(fp,"ServedMSISDN: %s\n",p->ServedMSISDN);	fprintf(fp,"ChargingCharacteristics: %s\n",p->ChargingCharacteristics);		fprintf(fp,"CAMELInformation MM\n");	fprintf(fp,"SCFAddress: %s\n",p->SCFAddress);	fprintf(fp,"ServiceKey: %s\n",p->ServiceKey);	fprintf(fp,"DefaultTransactionHandling: %d\n",p->DefaultTransacHandling);	fprintf(fp,"NumberOfDPEncountered: %s\n",p->NumberOfDPEncounter);	fprintf(fp,"LevelOfCAMELService: %s\n",p->LevelOfCamelService);	fprintf(fp,"FreeFORMATData: %s\n",p->FreeFormatData);	fprintf(fp,"FFDAppendIndicator: %d\n",p->FFDAppendIndicator);		fprintf(fp,"SystemType: %d\n",p->SystemType);	//	char DefaultSMSHandling;	fclose(fp);}int C_Dump::DumpOMOCDR(const char* fname, S_OMOCDR* p,int nNumber){         	FILE * fp = fopen(fname, "a");				if (p==NULL || fname[0]==0)	{		return -1;	}    fprintf(fp,"\n  OM-CDR  %s\n", Time());	fprintf(fp,"SeqId: %s\n",p->SeqId);	fprintf(fp,"RecordType: %d\n",p->RecordType);	fprintf(fp,"ServedIMSI: %s\n",p->ServedIMSI);	fprintf(fp,"ServedIMEI: %s\n",p->ServedIMEI);	fprintf(fp,"ServedMSISDN: %s\n",p->ServedMSISDN);	fprintf(fp,"MsNetworkCapability: %s\n",p->MSNetworkCapability);	fprintf(fp,"ServiceCentrer: %s\n",p->ServiceCenter);	fprintf(fp,"RecordingEntity: %s\n",p->RecordingEntity);	fprintf(fp,"LocationAreaCode: %s\n",p->LocationAreaCode);	fprintf(fp,"RoutingArea: %s\n",p->RoutingAreaCode);	fprintf(fp,"CellIdentity: %s\n",p->CellIdentity);	fprintf(fp,"MessageReference: %s\n",p->MessageReference);	fprintf(fp,"RecordOpeningTime: %s\n",p->EventStampTime);	fprintf(fp,"SMSResult: %d\n",p->SMSResult);	fprintf(fp,"RecordExtensions: %s\n",p->RecordExtensions);	fprintf(fp,"NodeID: %s\n",p->NodeID);	fprintf(fp,"LocalRecordSequenceNumber: %s\n",p->LocalRecordSequeceNumnber);	fprintf(fp,"ChargingCharacteristics: %s\n",p->ChargingCharacteristics);	fprintf(fp,"SystemType: %d\n",p->SystemType);	fprintf(fp,"DestinationNumber: %s\n",p->DestinationNumber);	fprintf(fp,"CAMELInformation SMS\n");	fprintf(fp,"SCFAddress: %s\n",p->SCFAddress);	fprintf(fp,"ServiceKey: %s\n",p->ServiceKey);	fprintf(fp,"DefaultSMSHandling: %d\n",p->DefaultSMSHandling);	fprintf(fp,"CAMELCallingPartyNumber: %s\n",p->CAMELCallingPartyNumber);	fprintf(fp,"CAMELDestinationSubscriberNumber: %s\n",p->CAMELAccessDestinationSubNumber);	fprintf(fp,"CAMELSMSCAddress: %s\n",p->CAMELSMSAdress);	fprintf(fp,"FreeFormatData: %s\n",p->FreeFormatData);	fprintf(fp,"SMSReferenceNumber: %s\n",p->SmsReferenceNumber);	fclose(fp);}int C_Dump::DumpOMTCDR(const char* fname, S_OMTCDR* p,int nNumber){           	FILE * fp = fopen(fname, "a");				if (p==NULL || fname[0]==0)	{		return -1;	}    fprintf(fp,"\n  MT-CDR  %s\n", Time());	fprintf(fp,"SeqId: %s\n",p->SeqId);	fprintf(fp,"RecordType: %d\n",p->RecordType);	fprintf(fp,"ServedIMSI: %s\n",p->ServedIMSI);	fprintf(fp,"ServedIMEI: %s\n",p->ServedIMEI);	fprintf(fp,"ServedMSISDN: %s\n",p->ServedMSISDN);	fprintf(fp,"MSNetworkCapability: %s\n",p->MSNetworkCapability);	fprintf(fp,"ServiceCenter: %s\n",p->ServiceCenter);	fprintf(fp,"RecordingEntity: %s\n",p->RecordingEntity);	fprintf(fp,"LocationAreaCode: %s\n",p->LocationAreaCode);	fprintf(fp,"RoutingArea: %s\n",p->RoutingAreaCode);	fprintf(fp,"CellIdentity: %s\n",p->CellIdentity);	fprintf(fp,"RecordOpeningTime: %s\n",p->EventStampTime);	fprintf(fp,"SMSResult: %d\n",p->SMSResult);	fprintf(fp,"RecordExtensions: %s\n",p->RecordExtensions);	fprintf(fp,"NodeID: %s\n",p->NodeID);	fprintf(fp,"LocalRecordSequenceNumber: %s\n",p->LocalRecordSequeceNumnber);	fprintf(fp,"ChargingCharacteristics: %s\n",p->ChargingCharacteristics);	fprintf(fp,"SystemType: %d\n",p->SystemType);	fclose(fp);}int C_Dump::DumpCSCDR(const char* fname, S_CSCDR_LOAD* p,int nNumber){     		FILE * fp = fopen(fname, "a");		if (p==NULL || fname[0]==0)	{		return -1;	}    fprintf(fp,"\n  S-CDR  %s\n", Time());	fprintf(fp,"SeqId:	%s\n", p->SeqId);	fprintf(fp,"RecordType:	%d\n", p->RecordType);	fprintf(fp,"ServedIMSI:	%s\n",p->ServedIMSI);	fprintf(fp,"ServedIMEI:	%s\n",p->ServedIMEI);	fprintf(fp,"SGSNAddress.IPBinaryAddress: %s\n",p->SGSNIPAddress);		fprintf(fp,"MSNetworkCapability: %s\n",p->MSNetworkCapability);	fprintf(fp,"RoutingAreaCode: %s\n",p->RoutingAreaCode);	fprintf(fp,"LocationAreaCode: %s\n",p->LocationAreaCode);	fprintf(fp,"CellIdentity: %s\n",p->CellIdentity);	fprintf(fp,"ChargingID:	%s\n",p->ChargingID);	fprintf(fp,"GGSNAddressUsed.IPBinaryAddress: %s\n",p->GGSNAddress);	fprintf(fp,"AccessPointNameNI: %s\n",p->AccessPointNameNI);	fprintf(fp,"PDPType: %s\n",p->PDPTypeNumber);	fprintf(fp,"ServedPDPAddress.IPAddress.IPBinaryAddress: %s\n",p->ServedPDPAddress);			fprintf(fp,"RecordOpeningTime: %s\n",p->RecordOpenTime);	fprintf(fp,"CallDuration: %s\n",p->CallDuration);	fprintf(fp,"SGSNChange: %d\n",p->SGSNChange);	fprintf(fp,"CauseForRecClosing: %s\n",p->CauseForRecClosing);	fprintf(fp,"Diagnostics: %d\n",p->Diagnostics);	fprintf(fp,"RecordSequenceNumber: %s\n",p->RecordSequenceNumber);	fprintf(fp,"NodeID: %s\n",p->NodeID);	fprintf(fp,"RecordExtensions: %s\n",p->RecordExtensions);	fprintf(fp,"LocalRecordSequenceNumber: %s\n",p->LocalRecordSequeceNumnber);	fprintf(fp,"APNSelectionMode: %d\n",p->APNSelectionMode);	fprintf(fp,"AccessPointNameOI: %s\n",p->AccessPointNameOI);	fprintf(fp,"ServedMSISDN: %s\n",p->ServedMSISDN);	fprintf(fp,"ChargingCharacteristics: %s\n",p->ChargingCharacteristics);	fprintf(fp,"SystemType: %d\n",p->SystemType);		fprintf(fp,"CAMELInformation {\n");	fprintf(fp,"   SCFAddress: %s\n",p->SCFAddress);	fprintf(fp,"   ServiceKey: %s\n",p->ServiceKey);	fprintf(fp,"   DefaultTransactionHandling: %d\n",p->DefaultTransacHandling);	fprintf(fp,"   CAMELAccessPointNameNI: %s\n",p->CAMELAPNNI);	fprintf(fp,"   CAMELAccessPointNameOI: %s\n",p->CAMELAPNOI);	fprintf(fp,"   NumberOfDPEncountered: %s\n",p->NumberOfDPEncounter);	fprintf(fp,"   LevelOfCAMELService: %s\n",p->LevelOfCamelService);	fprintf(fp,"   FreeFORMATData: %s\n",p->FreeFormatData);	fprintf(fp,"   FFDAppendIndicator: %d\n",p->FFDAppendIndicator);	fprintf(fp,"   GGSNAddress: %s\n",p->GGSNAddress);	fprintf(fp, "   %s\n", p->RecordSequenceNumber);	fclose(fp);      }int C_Dump::DumpCGCDR(const char* fname, S_CGCDR_LOAD* p,int nNumber){      	FILE * fp = fopen(fname, "a");		if (p==NULL || fname[0]==0)	{		return -1;	}fprintf(fp,"\n  CG-CDR  %s\n", Time());fprintf(fp,"SeqId: %s\n",p->SeqId);  fprintf(fp,"RecordType: %d\n",p->RecordType);fprintf(fp,"NetworkInitiatedPDPContext: %d\n",p->NetworkInitiatedPDPContext);fprintf(fp,"ServedIMSI: %s\n",p->ServedIMSI);fprintf(fp,"GGSNAddress: %s\n",p->GGSNAddress);fprintf(fp,"ChargingID: %s\n",p->ChargingID);fprintf(fp,"AccessPointNameNI: %s\n",p->AccessPointNameNI);fprintf(fp,"PDPTypeNumber: %s\n",p->PDPTypeNumber);fprintf(fp,"ServedPDPAddress: %s\n",p->ServedPDPAddress);fprintf(fp,"DynamicAddressFlag: %d\n",p->DynamicAddressFlag);fprintf(fp,"RecordOpenTime: %s\n",p->RecordOpenTime);fprintf(fp,"CallDuration: %s\n",p->CallDuration);fprintf(fp,"Diagnostics: %s\n",p->Diagnostics);fprintf(fp,"NodeID: %s\n",p->NodeID);fprintf(fp,"APNSelectionMode: %d\n",p->APNSelectionMode);fprintf(fp,"ServedMSISDN: %s\n",p->ServedMSISDN);fprintf(fp,"SgsnPlmnIdentifier: %s\n",p->SgsnPlmnIdentifier);fprintf(fp,"ConsolidationResult: %s\n",p->ConsolidationResult);fprintf(fp,"ChargingCharacterSelectionMode: %d\n",p->ChargingCharacterSelectionMode);fprintf(fp,"ChargingCharacteristics: %s\n",p->ChargingCharacteristics);fprintf(fp,"AnonyAccessIndicator: %d\n",p->AnonyAccessIndicator);fprintf(fp,"RemotePdpAddr: %s\n",p->RemotePdpAddr);fprintf(fp,"FlagRead: %d\n",p->FlagRead);fprintf(fp,"TableName: %s\n",p->TableName);fprintf(fp,"FlagRepeat: %d\n",p->FlagRepeat);fprintf(fp,"FlagR499: %d\n",p->FlagR499);fprintf(fp,"DateCreated: %s\n",p->DateCreated);fprintf(fp,"GsnId: %s\n",p->GsnId);fprintf(fp,"SGSNIPAddress: %s\n",p->SGSNIPAddress);fprintf(fp,"CauseForRecClosing: %s\n",p->CauseForRecClosing);fprintf(fp,"RecordSequenceNumber: %s\n",p->RecordSequenceNumber);fprintf(fp,"RecordExtensions: %s\n",p->RecordExtensions);fprintf(fp,"LocalRecordSequeceNumnber: %s\n",p->LocalRecordSequeceNumnber);fclose(fp);}

⌨️ 快捷键说明

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