亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 50261bbfc05f001d1289bbda6de18a35

?? Vxworks環(huán)境下
??
?? 第 1 頁 / 共 2 頁
字號:

/*
$Log$
*/
/*
** ---------------------------------------------------------------------
**                Copyright (c) Bosch Rexroth AG 1997 - 2008
**                        All Rights Reserved
** ---------------------------------------------------------------------
**
**    File: dab_h_toolmanage.c
** 
**    Responsible: MY
** 
**    Description of functions:
**          test file for cpl management like variable list or debug
**          
**         
**	     -  CPL Debugger
**           -  set/delete breakpoint
**	     -  CPL Variable list
**           -  Add watch point and so on
**       -  **
** 
** ---------------------------------------------------------------------
*/
/*F*/
/*======================================================================
**           >>>>    Include all necessary headfiles     <<<<
** ==================================================================== */
/*======================================================================
**           >>>>    C - Standard Headerfiles        <<<<
** ==================================================================== */

#ifdef HWDS_WINDOWS 
#include <windows.h>       /* required for all Windows applications */
#endif
#include <stdio.h>

/*lint -e46*/
/*lint -e49*/
/*lint -e10*/
#include <tilcon/TRTAPI.h> 	// Tilcon API functions
/*lint +e46*/
/*lint +e49*/
/*lint +e10*/
/*======================================================================
**           >>>>    General definitions for c-files <<<<
**        these lines are generated automatically , do not modify !
** ==================================================================== */
#include <ty3c_mac.h>

/*F*/
/*======================================================================
**           >>>>    MTX - Headerfiles               <<<<
** ==================================================================== */

#ifndef NCS1BAS_INCLUDED
#include "ncs1bas.h"
#endif

#ifndef NCS1MCO_INCLUDED
#include "ncs1mco.h"
#endif

#ifndef NCS1SAV_INCLUDED
#include "ncs1sav.h"
#endif


/*======================================================================
**           >>>>    Headerfiles of the subsystem    <<<<
** ==================================================================== */

#ifndef DAB_H_ENGINE_IF_INCLUDED
#include "dab_h_engine_if.h"
#endif

#ifndef DAB_H_AXIS_IF_INCLUDED
#include "dab_h_axis_if.h"
#endif

#ifndef DAB_H_OBJIDS_INCLUDED
#include "dab_h_ObjIDs.h"
#endif

#ifndef DAB_H_MEM_INCLUDED
#include "dab_h_mem.h"
#endif


#include "string.h"


/*F*/
/*======================================================================
**           >>>>    Local definitions               <<<<
** ==================================================================== */

/***********************************************************************/
/** Here are some variables defined used in the CPL debug example.**/

#define MAXFILESIZE  1024*3            /*the size of the buffer saving the context of the NC Program to be showed in the HMI*/
LOCAL struct File_Name_Id{
	long fileid;
	char filename[15];
}record[100];                          /* use it to record the file name and id list in the folder */

IMPORT char Currentfileselect[20];     /*It will save the file name only.*/
char CurrentFileToRun[100];        /*It will save the file name and it's path.*/
char Currentpath[20]="";               /*It will save the file path.*/



/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : DirShowtest
** 
** >DESCRIPTION: Example to Load directory into the HMI.
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void Directory_Load(void){
	char buf[1024];
	char *entry;
	int  ret;
	char buffer[4096]="";
	char filebuffer[20];
	struct stat file_state;
	char BufferSelectPath[20]="";
	char item_base[5]="item";
	char imagebuf[50]="";
	char child_item[10]="";
	int  n=1;
	int  itemnumber=0;
	char tempr[3];
	
	TRT_SetValues(TRT_cid2, "FilesUnderFold",
		TRT_ATT_TEXT,"",
		NULL);
	//Get file path of access from HMI
	TRT_GetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,NULL);
	
	//Mybe at here we will add a procress to modify the pathbuffer by delete redundant '/'! 
	Delete_RepetCharacter(BufferSelectPath,'/');
	
	TRT_SetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,NULL);
	
	
	//How to prepare to add a item to a tree
	//at first you should know the parent item id 
	//at second you should know the item id of itself 
	//at 3rd you should know the item name which is be added to the tree.
	//at last you should add a ico to the item ,but it must not be done.
	sprintf(imagebuf,"%s\3%s\3%s\3%s\0",
		"item", "item0",BufferSelectPath,"folderop.ico");
	
	/* show root on the Tree view */
	TRT_SetValues(TRT_cid2, "Test_tree",
		/* del all already exist info on the tree view */
		TRT_ATT_LIST_DELETE_ITEMS, -1,
		/* add the item with the itemname and its icon */
		TRT_ATT_TREE_ITEMS_ADD_ID_IMAGE , imagebuf,
		NULL);
	
	//At first you should clear the filelist every time.
	TRT_SetValues(TRT_cid2, "FilesUnderFold",
		TRT_ATT_LIST_DELETE_ITEMS,-1,
		NULL); 
	
	//login the file system
	Ncs_Fsr_login("root", 0, 0, 0);
	
	//open a directory and record the "context" in the bufferXX
	
	ret=Ncs_Fsr_fopendir(BufferSelectPath,buf,1024);
	Ncs_Fsr_chdir(BufferSelectPath);
	Ncs_Fsr_getcwd(Currentpath);

	if (ret< 0)
	{
		TRT_SetValues(TRT_cid2,"Message_Display1",
			TRT_ATT_TEXT,"Read_file_Error!!!",NULL);
		return;
	}
	entry=NULL;
	do
	{
		//extract entry from the bufferXX
		ret=Ncs_Fsr_fgetdirentry(buf,&entry);
		//Get the entry state
		Ncs_Fsr_stat(entry,&file_state);
		if(ret>0) 
		{   //prepare to got a filename;
			strcpy(filebuffer,entry);
			if(S_ISDIR(file_state.st_mode)!=0){
				//make a new item id as  
				sprintf(tempr,"%d",n);
				strcat(item_base,tempr);
				
				strcpy(child_item,item_base);
				sprintf(imagebuf,"%s\3%s\3%s\3%s\0",
					"item0", child_item, entry, "folder.ico");
			
				TRT_SetValues(TRT_cid2, "Test_tree",
					TRT_ATT_TREE_ITEMS_ADD_ID_IMAGE,imagebuf,
					NULL);
				n++;
			}
			else{
				
				TRT_SetValues(TRT_cid2, "FilesUnderFold",
					TRT_ATT_ITEM_CREATE,entry,
					NULL); 
				//do someting record in order to show file list in this fold
				record[itemnumber].fileid=itemnumber;
				strcpy(record[itemnumber].filename,entry);
				itemnumber++;
			}
		}
		if (ret< 0)
		{
			TRT_SetValues(TRT_cid2,"Message_Display1",
				TRT_ATT_TEXT,"Get_Entry_Error!!!",
				NULL);
		}
	} while (ret>0);

	strcpy(BufferSelectPath,Currentpath);
	TRT_SetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,
		NULL);
	Ncs_Fsr_fclosedir(buf);
	Ncs_Fsr_logout("root",0);
	
}

/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : FileReadTest
** 
** >DESCRIPTION: Example to Load directory into the HMI.
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void FileReadTest(void){   
	
	char filenamewithpath[20]="";
	char fileselect[20]="";
	char filecontextfuffer[MAXFILESIZE];		/*have problem here.*/
	long itemid=0;
	char itemtxt[15]="";
	struct stat file_state;
	int error;
	char* point=NULL;							/*check the npg file.*/
	int number=0;
	int BreakpointPlace[20]={0};
	int i=0;
	int n=0;
	int m=0;
	char tempbuffer[4]="";
	char tablename_my[20]="";

	TRT_SetValues(TRT_cid2, "FileContext",       /* At first you shoud clear the old file context! */
		TRT_ATT_TEXT,"",
		NULL);
	error=Ncs_Fsr_login("root", 0, 0, 0);
	TRT_GetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,filenamewithpath,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色婷婷久久58| 在线免费观看日本一区| 欧美一区二区日韩| 日韩中文字幕一区二区三区| 欧美色爱综合网| 日韩精彩视频在线观看| 欧美肥妇bbw| 青青草97国产精品免费观看 | 国产成人8x视频一区二区| 日韩欧美国产三级电影视频| 男人的j进女人的j一区| 日韩欧美中文一区二区| 久久99精品一区二区三区三区| 色婷婷久久久亚洲一区二区三区 | **性色生活片久久毛片| 日本高清成人免费播放| 午夜精品久久久久影视| 欧美成人性福生活免费看| 国产一区999| 国产精品不卡在线| 在线视频亚洲一区| 麻豆精品视频在线观看视频| 久久综合九色综合久久久精品综合| 国产一区中文字幕| 欧美激情综合五月色丁香小说| 成人福利视频在线看| 亚洲国产裸拍裸体视频在线观看乱了| 一本一道久久a久久精品| 天堂在线亚洲视频| www一区二区| 97se亚洲国产综合自在线不卡 | 一区二区三区欧美日韩| 欧美日韩国产大片| 韩国欧美国产1区| 亚洲欧美一区二区不卡| 91精品国产综合久久久蜜臀图片 | 色狠狠av一区二区三区| 蜜臀av性久久久久蜜臀av麻豆| 久久久三级国产网站| av在线播放一区二区三区| 婷婷综合另类小说色区| 国产女人18水真多18精品一级做| 91一区二区在线| 麻豆精品国产传媒mv男同| 亚洲欧洲日产国产综合网| 欧美视频一二三区| 高清shemale亚洲人妖| 婷婷中文字幕综合| 国产精品久久福利| 日韩午夜av一区| 色婷婷国产精品久久包臀 | 亚洲国产精品v| 精品日本一线二线三线不卡| 成人av高清在线| 国产一区二区三区四区在线观看| 亚洲不卡av一区二区三区| 亚洲欧美国产高清| 国产精品三级av| 久久久久国产免费免费| 久久久久久免费毛片精品| 欧美一级高清片在线观看| 欧美日韩综合在线| 91福利国产成人精品照片| 国产91精品欧美| 国产一区二区毛片| 国产在线播放一区二区三区| 青青草97国产精品免费观看无弹窗版| 性做久久久久久免费观看欧美| 一区二区三区电影在线播| 中文字幕一区二区三| 中文字幕亚洲视频| 亚洲男人的天堂av| 亚洲人成在线观看一区二区| 亚洲欧美在线视频观看| 亚洲视频在线观看三级| 中文久久乱码一区二区| 欧美国产综合一区二区| 国产拍欧美日韩视频二区 | 亚洲欧美一区二区三区国产精品 | 精品久久一区二区三区| 欧美一级在线免费| 日韩视频在线一区二区| 在线综合视频播放| 日韩精品专区在线影院观看| 日韩欧美久久一区| 日韩女优av电影在线观看| 欧美精品一区二区三区在线| 久久久影院官网| 国产精品成人网| 亚洲色图色小说| 亚洲成人黄色小说| 久久精品国产99国产精品| 韩国精品主播一区二区在线观看| 国产91精品欧美| 99久久精品一区| 欧美精品九九99久久| 欧美一区二区成人6969| 久久男人中文字幕资源站| 中文字幕av一区二区三区免费看| 亚洲特级片在线| 亚洲成人综合网站| 激情欧美日韩一区二区| 成人午夜大片免费观看| 欧美精品一区在线观看| 国产亚洲欧美在线| 亚洲人成电影网站色mp4| 日韩国产在线观看一区| 国产999精品久久| 色综合久久天天综合网| 欧美一区二区日韩| 国产精品毛片大码女人| 视频一区二区欧美| 国产69精品久久久久777| 欧美视频在线播放| 国产午夜精品美女毛片视频| 有坂深雪av一区二区精品| 蜜桃视频在线观看一区| 成人av在线播放网址| 在线电影欧美成精品| 日本一区二区三区四区在线视频 | 99亚偷拍自图区亚洲| 欧美日韩国产影片| 欧美国产日韩a欧美在线观看| 一区二区三区在线观看国产 | 粉嫩aⅴ一区二区三区四区| 欧美色综合影院| 国产欧美精品一区| 图片区小说区国产精品视频| 成人国产电影网| 精品sm捆绑视频| 亚洲成人中文在线| 成人app在线| 欧美va亚洲va| 亚洲福利视频导航| 99国产精品久久| 亚洲精品一区二区精华| 三级久久三级久久| 色就色 综合激情| 中文字幕欧美区| 国产一区二区伦理| 欧美一区二区三区四区五区| 亚洲精品欧美激情| 丁香婷婷综合网| 亚洲精品一区二区三区蜜桃下载| 偷拍亚洲欧洲综合| 欧美日韩色综合| 亚洲精品久久7777| a在线播放不卡| 亚洲国产成人在线| 国产伦精品一区二区三区免费| 欧美日韩三级在线| 亚洲成人在线网站| 欧美三级中文字幕在线观看| 亚洲日本免费电影| 成人黄页毛片网站| 国产欧美一区二区精品久导航 | 91免费看片在线观看| 久久久亚洲精品石原莉奈| 日韩不卡一区二区| 欧美日韩一区成人| 亚洲午夜激情av| 色婷婷亚洲婷婷| 亚洲精品乱码久久久久久日本蜜臀| 不卡视频一二三四| 中文字幕一区不卡| jlzzjlzz欧美大全| 亚洲色大成网站www久久九九| 懂色av噜噜一区二区三区av| 久久久精品欧美丰满| 国产乱国产乱300精品| 精品国产网站在线观看| 久久97超碰色| 久久精品视频网| 粉嫩一区二区三区性色av| 欧美激情一区二区三区在线| 成人国产精品免费网站| 亚洲欧美日韩一区| 欧美日韩一区二区三区四区五区| 一区二区三区在线看| 欧美日本精品一区二区三区| 午夜精品爽啪视频| 日韩欧美综合一区| 国产精品456露脸| 国产精品初高中害羞小美女文| 不卡av在线网| 亚洲午夜影视影院在线观看| 在线不卡一区二区| 国内精品伊人久久久久影院对白| 欧美激情在线观看视频免费| 91蜜桃网址入口| 日韩成人免费看| 久久久久久久久久久久久夜| 成人av资源下载| 亚洲精品一卡二卡| 欧美成人猛片aaaaaaa| 成人深夜视频在线观看| 一级特黄大欧美久久久| 欧美一区二区三区四区视频 | 麻豆成人91精品二区三区| 国产日韩av一区|