/*------------------------------------------------------------------------------*
* File Name:	readjnb.h														*
* Creation:	GRD 8/7/2001														*
* Purpose:		OriginC Source C file											*
* Copyright (c) OriginLab Corp. 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008	*
* All Rights Reserved															*
* 																				*
* Modification Log:																*
*	GRD 2003.01.14 No new worksheet for Text+Binary								*
*	Cheney 2006.07.10 REWRITE													*
*-------------------------------------------------------------------------------*/
 
 #ifndef _READJNB_H
 #define _READJNB_H

///---Sim 11-07-2006 REMOVE_FROM_FILE_SOURCE
 // Error Message
 enum{
	JNB_ERR_FAILED_TO_READ_FILE_TO_TREE 			= 	-10,
	JNB_ERR_FAILED_TO_GET_DATA_FROM_STREAM,
	JNB_ERR_FAILED_TO_GET_SUBVEC_FROM_BYTE_VECTOR,
	JNB_ERR_FILE_TRUNCATED,	
	JNB_ERR_FAILED_TO_READ_FILE_HEADER,
	JNB_ERR_FAILED_TO_SEEK_START,
	JNB_ERR_FAILED_TO_READ_DATA,
	JNB_ERR_FAILED_TO_GET_WKS_NAME
 };
///---END REMOVE_FROM_FILE_SOURCE

 //read SigmaPlot file
 //return number of column of importing data, or negtive for error.
 int readjnb(LPCSTR lpcszFilename, Worksheet& wks, TreeNode& trInfo, int nC1 = 0);

#endif // _READJNB_H
