aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lipi-toolkit/3rdparty/lipi-toolkit/src/util/lib/LTKInkFileReader.cpp
blob: da5e89b77c2b49cb3416b3760ce7419a462af7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
/*****************************************************************************************
* Copyright (c) 2007 Hewlett-Packard Development Company, L.P.
* Permission is hereby granted, free of charge, to any person obtaining a copy of 
* this software and associated documentation files (the "Software"), to deal in 
* the Software without restriction, including without limitation the rights to use, 
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the 
* Software, and to permit persons to whom the Software is furnished to do so, 
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
*****************************************************************************************/

/************************************************************************
 * SVN MACROS
 *
 * $LastChangedDate: 2011-04-05 13:49:39 +0530 (Tue, 05 Apr 2011) $
 * $Revision: 844 $
 * $Author: mnab $
 *
 ************************************************************************/
/************************************************************************
 * FILE DESCR: Implementation of the Ink File Reader Module
 *
 * CONTENTS:
 *	readInkFile
 *
 * AUTHOR:     Balaji R.
 *
 * DATE:       December 23, 2004
 * CHANGE HISTORY:
 * Author		Date			Description of change
 * Deepu V.     14 Sept 2005    Added unipen file reading function
 *                              that reads annotation.
************************************************************************/
#include "LTKChannel.h"

#include "LTKTraceFormat.h"

#include "LTKTrace.h"

#include "LTKTraceGroup.h"

#include "LTKCaptureDevice.h"

#include "LTKScreenContext.h"

#include "LTKStringUtil.h"

#include "LTKInc.h"

#include "LTKException.h"

#include "LTKMacros.h"

#include "LTKErrors.h"

#include "LTKErrorsList.h"

#include "LTKLoggerUtil.h"
#include "LTKInkFileReader.h"

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: LTKInkFileReader
* DESCRIPTION	: Default Constructor
* ARGUMENTS		: 
* RETURNS		: 
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

LTKInkFileReader::LTKInkFileReader(){}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: readRawInkFile
* DESCRIPTION	: reads contents of a file containing raw ink stored in a specified format into
*				  a trace group object. Also the device information stored in the ink file is read
*                 into a capture device object.
* ARGUMENTS		: inkFile - name of the file containing the ink
*				  traceGroup - trace group into which the ink has to be read into
*				  captureDevice - capture device object into which device info is to be read into
*				  screenContext - writing area information
* RETURNS		: SUCCESS on successfully reading the ink file into 
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

int LTKInkFileReader::readRawInkFile(const string& inkFile, LTKTraceGroup& traceGroup, LTKCaptureDevice& captureDevice, LTKScreenContext& screenContext)
{

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) << 
	  " Entering: LTKInkFileReader::readRawInkFile()" << endl;
    
	string dataLine;

	vector<string> dataVector;

	vector<float> point;				//	a point of a trace

	int pointIndex;

	if(inkFile.empty())
	{
		LOG(LTKLogger::LTK_LOGLEVEL_ERR)
            <<"Error : "<< EINKFILE_EMPTY <<":"<< getErrorMessage(EINKFILE_EMPTY)
            <<"LTKInkFileReader::readRawInkFile()" <<endl;

		LTKReturnError(EINKFILE_EMPTY);
	}

	//	opening the ink file
	
	ifstream infile(inkFile.c_str());

	//	checking if the file open was successful

	if(!infile)
	{
		LOG(LTKLogger::LTK_LOGLEVEL_ERR)
			<<"Error: LTKInkFileReader::readRawInkFile()"<<endl;

		LTKReturnError(EINK_FILE_OPEN);
	}

	vector<LTKChannel> channels; 				//	channels of a trace 

	LTKChannel xChannel("X", DT_FLOAT, true);	//	x-coordinate channel of the trace
	
	LTKChannel yChannel("Y", DT_FLOAT, true);	//	y-coordinate channel of the trace

	LTKChannel tChannel("T", DT_FLOAT, true);	//	time channel of the trace

	//	initializing the channels of the trace

	channels.push_back(xChannel);
	
	channels.push_back(yChannel);

	channels.push_back(tChannel);

	//	composing the trace format object
	
	LTKTraceFormat traceFormat(channels);

	//	reading the ink file

	while(infile)
	{
		LTKTrace trace(traceFormat);

		while(infile)
		{
			getline(infile, dataLine);

			LTKStringUtil::tokenizeString(dataLine, " \t", dataVector);

            if(fabs( LTKStringUtil::convertStringToFloat(dataVector[0]) + 1 ) < EPS)
			{
				traceGroup.addTrace(trace);

				break;
			}
            else if(fabs( LTKStringUtil::convertStringToFloat(dataVector[0]) + 2 ) < EPS)
			{
				return SUCCESS;
			}
            else if(fabs( LTKStringUtil::convertStringToFloat(dataVector[0]) + 6 ) < EPS)
			{
                captureDevice.setXDPI(LTKStringUtil::convertStringToFloat(dataVector[1]));

                captureDevice.setYDPI(LTKStringUtil::convertStringToFloat(dataVector[2]));
			}
            else if(LTKStringUtil::convertStringToFloat(dataVector[0]) < 0)
			{
				//	unknown tag. skipping line

				continue;
			}
			else
			{

				for(pointIndex = 0; pointIndex < dataVector.size(); ++pointIndex)
				{
                    point.push_back(LTKStringUtil::convertStringToFloat(dataVector[pointIndex]));
				}

				if(dataVector.size() == 2)
				{
					point.push_back(0.0);
				}

				trace.addPoint(point);

				point.clear();
			}
		}
	}
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) << 
	  " Exiting: LTKInkFileReader::readRawInkFile()" << endl;

	return FAILURE;
}

/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: readUnipenInkFile
* DESCRIPTION	: reads contents of a file containing unipen ink stored in a specified format into
*				  a trace group object. Also the device information stored in the ink file is read
*                 into a capture device object.
* ARGUMENTS		: inkFile - name of the file containing the ink
*				  traceGroup - trace group into which the ink has to be read into
*				  captureDevice - capture device object into which device info is to be read into
*				  screenContext - writing area information
* RETURNS		: SUCCESS on successfully reading the ink file into 
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

int LTKInkFileReader::readUnipenInkFile(const string& inkFile, LTKTraceGroup& traceGroup, LTKCaptureDevice& captureDevice, LTKScreenContext& screenContext)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) <<
	  " Entering: LTKInkFileReader::readUnipenInkFile()" << endl;

	map<string,string> traceIndicesCommentsMap;

	string hierarchyLevel;
	string quality("ALL");
	
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) << 
	  " Exiting: LTKInkFileReader::readUnipenInkFile()" << endl;

	return (readUnipenInkFileWithAnnotation(inkFile,hierarchyLevel,quality,traceGroup,traceIndicesCommentsMap,captureDevice,screenContext));
}

/**********************************************************************************
* AUTHOR		: Deepu V.
* DATE			: 14-SEP-2004
* NAME			: readUnipenInkFileWithAnnotation
* DESCRIPTION	: reads contents of a unipen file containing ink stored in a specified format into
*				  a trace group object. Also the device information stored in the ink file is read
*                 into a capture device object.The screen information is captured in screen context object.
* ARGUMENTS		: inkFile - name of the file containing the ink
*				  hierarchyLevel - level at which the ink is required, ex. WORD or CHARACTER that follows .SEGMENT
*				  quality - quality of the ink that is required. Can be GOOD,BAD,OK or ALL. Example, if ink of quality
*				  GOOD and BAD are required, then quality="GOOD,BAD" (NOTE:comma(,) is the delimiter) else if all ink 
*				  are required, quality="ALL"
*				  traceGroup - trace group into which the ink has to be read into
*				  traceIndicesCommentsMap - Map containing list of strokes separated by commas as key and the comments
*				  to that trace group unit as value (ex. key-"2,4,5" value-"delayed stroke"
*				  captureDevice - capture device object into which device info is to be read into
*				  screenContext - writing area information
* RETURNS		: SUCCESS on successfully reading the ink file into 
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/



int LTKInkFileReader::readUnipenInkFileWithAnnotation(const string& inkFile,const string& hierarchyLevel,const string& quality, LTKTraceGroup& traceGroup,map<string,string>& traceIndicesCommentsMap,LTKCaptureDevice& captureDevice, LTKScreenContext& screenContext)
{
	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) << 
	  " Entering: LTKInkFileReader::readUnipenInkFileWithAnnotation()" << endl;

	vector<float> point;				//	a point of a trace

	float xDpi;							//	device resolution in the x direction

	float yDpi;							//	device resolution in the y direction

	float bboxLeft;						//	leftmost x-coord of the writing area

	float bboxBottom;					//	bottommost y-coord of the writing area

	float bboxRight;					//	rightmost x-coord of the writing area

	float bboxTop;						//	topmost y-coord of the writing area

	float floatChannelValue;			//	channel value of type float

	long longChannelValue;				//	channel value of type long

	string channelNames;				//	string containing all the channel names

	vector<string> channelNamesVector;	//	vector of channel names

	int channelIndex;					//	index to loop over all channels in the channel list

	vector<string> qualityLevels;		//	list of quality levels required

	vector<string> coordVals;			//	list of coordinate values present

	string remainingLine;				//remaining of the line that does not contain the required hierarchy level

	bool verFlag = false, hlevelFlag = false, coordFlag = false;//  bool level that denote whether version Info, Hierarchy level and coordinate info are set

	bool pendownFlag = false;

    LTKStringUtil::tokenizeString(quality,",", qualityLevels);

	//	opening the ink file
	
	if(inkFile.empty())
	{
	     LOG(LTKLogger::LTK_LOGLEVEL_ERR)
                  <<"Error : "<< EINKFILE_EMPTY <<":"<< getErrorMessage(EINKFILE_EMPTY)
                  <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;

		LTKReturnError(EINKFILE_EMPTY);
	}

	ifstream infile(inkFile.c_str());	//	

	//	checking if the file open was successful

	if(!infile)
	{
	     LOG(LTKLogger::LTK_LOGLEVEL_ERR)
                  <<"Error : "<< EINK_FILE_OPEN <<":"<< getErrorMessage(EINK_FILE_OPEN)
                  <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;

		LTKReturnError(EINK_FILE_OPEN);
	}

	LTKTrace *trace = NULL;						//	initializing trace to NULL

	vector<LTKChannel> channels;				//	channels of a trace 

	LTKTraceFormat traceFormat;					//	format of the trace

	//	reading the ink file

	string keyWord;								//	a key word of the unipen format

	while(infile)
	{
		keyWord = "";
		infile >> keyWord;

		if(keyWord == ".COORD")
		{
			coordFlag = true;

			getline(infile, channelNames);

			LTKStringUtil::tokenizeString(channelNames, " \t", channelNamesVector);

			for(channelIndex = 0; channelIndex < channelNamesVector.size(); ++channelIndex)
			{
				if(channelNamesVector[channelIndex] == "T")
				{
					LTKChannel channel(channelNamesVector[channelIndex], DT_LONG, true);	
					channels.push_back(channel);
				}
				else
				{
					LTKChannel channel(channelNamesVector[channelIndex], DT_FLOAT, true);
					channels.push_back(channel);
				}
			}

			traceFormat.setChannelFormat(channels);

		}
		else if(keyWord == ".X_POINTS_PER_INCH")
		{
			infile >> xDpi;
			captureDevice.setXDPI(xDpi);

		}
		else if(keyWord == ".Y_POINTS_PER_INCH")
		{
			infile >> yDpi;
			captureDevice.setYDPI(yDpi);
		}
		else if(keyWord == ".H_LINE")
		{
			infile >> bboxBottom >> bboxTop;
			screenContext.setBboxBottom(bboxBottom);
			screenContext.setBboxTop(bboxTop);
		}
		else if(keyWord == ".V_LINE")
		{
			infile >> bboxLeft >> bboxRight;

			screenContext.setBboxLeft(bboxLeft);

			screenContext.setBboxRight(bboxRight);
		}
		else if(keyWord==".SEGMENT")
		{
			string strHierarchyLevel;	//stores the hierarchy level (ex. CHARACTER or WORD)
			string strStrokeIndices;	//comma separated stroke indices
			string strQuality;			//annotated quality of the trace/trace group
			string strComments;			//comments about the ink
			
			infile >> strHierarchyLevel;
									
			if(strHierarchyLevel==hierarchyLevel)	//if the encountered hierarchy level is the required
			{

				string checkString;
				getline(infile,checkString,'\n');
				
				if(checkString.empty())
				{

					LOG( LTKLogger::LTK_LOGLEVEL_ERR) << 
						"Annotation not found at the specified hierarchy level:" << 
						hierarchyLevel << " in "+inkFile << endl;
					//return FAILURE;
					continue;

				}

				vector<string> tokens;

				LTKStringUtil::tokenizeString(checkString," ", tokens);

				if(tokens.size()>=3)
				{

					strStrokeIndices=tokens[0];
					strQuality=tokens[1];
					for(int i=2;i<tokens.size();++i)
					{
						strComments=strComments+tokens[i]+" ";
					}

					strComments=strComments.substr(0,strComments.length()-1); //removing the last space added
				}
				else
				{
					LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) << 
                        "Invalid annotation format at the specified hierarchy level:" <<
                        hierarchyLevel << " in "  << inkFile << endl;
					//return FAILURE;
					continue;
				}

	
				strComments=strComments.substr(1,strComments.length()-2);	//to remove the leading space and double quoutes

				bool isRequiredQuality=false;
				if(quality=="ALL")	//if no condition on quality
				{
					isRequiredQuality=true;
				}
				else
				{
					for(vector<string>::iterator iter=qualityLevels.begin();iter!=qualityLevels.end();++iter)
					{

						if((*iter)==strQuality)
						{
							isRequiredQuality=true;
							break;
						}
						
					}

				}

				if(isRequiredQuality)
				{
					//if the trace/trace group is of required quality stores the stroke
					//indices and comments in the output map
					traceIndicesCommentsMap.insert(make_pair(strStrokeIndices,strComments));

				}
			}
			else	//if not the required hierarchy level, just get the remaining line
			{
				if(keyWord == ".VERSION")
					verFlag = true;
				else if ((keyWord == ".HIERARCHY"))
					hlevelFlag = true;

				getline(infile,remainingLine);

			}

		}
		else if(keyWord == ".PEN_DOWN")
		{
			if (pendownFlag)
			{
				LOG(LTKLogger::LTK_LOGLEVEL_ERR)
                  <<"Error : "<< EINKFILE_CORRUPTED <<":"<< getErrorMessage(EINKFILE_CORRUPTED)
                  <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;

				LTKReturnError(EINKFILE_CORRUPTED);
			}

			pendownFlag = true;

			LTKTrace trace(traceFormat); 

			
			while(infile)
			{
				infile >> keyWord;

				if(keyWord == ".PEN_UP")
				{
					if (!pendownFlag)
					{
						LOG(LTKLogger::LTK_LOGLEVEL_ERR)
		                  <<"Error : "<< EINKFILE_CORRUPTED <<":"<< getErrorMessage(EINKFILE_CORRUPTED)
				          <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;
						
						LTKReturnError(EINKFILE_CORRUPTED);
					}

					pendownFlag = false;

					if(trace.getNumberOfPoints() == 0)
					{
						LOG(LTKLogger::LTK_LOGLEVEL_ERR)
								<<"Error: LTKInkFileReader::readUnipenInkFileWithAnnotation()"<<endl;

						LTKReturnError(EEMPTY_TRACE);		
					}

					traceGroup.addTrace(trace);
					
					break;
				}
				else
				{
					// BUGFIX : if no attributes in input ink file, throw error and stop
					if(channelNamesVector.empty()) 
					{
						//if(!verFlag)
						//{
						//}
                       // cout<<" keyword = "<<keyWord<<endl;
                                                
						LOG(LTKLogger::LTK_LOGLEVEL_ERR)
		                  <<"Error : "<< EINKFILE_CORRUPTED <<":"<< getErrorMessage(EINKFILE_CORRUPTED)
				          <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;
						
						LTKReturnError(EINKFILE_CORRUPTED);
					}

					if(channelNamesVector[0] == "T")
					{
						longChannelValue = atol(keyWord.c_str());

						point.push_back(longChannelValue);
					}
					else
					{
                        floatChannelValue = LTKStringUtil::convertStringToFloat(keyWord);

						point.push_back(floatChannelValue);
					}

					getline(infile,remainingLine);

					coordVals.clear();
					
					LTKStringUtil::tokenizeString(remainingLine,string(" "), coordVals);

					if (coordVals.size() != (channelNamesVector.size() -1))
					{
                        int index;
                        for (index = 0 ; index < channelNamesVector.size(); ++index)
                        {
                                cout << "coord name at index "<<channelNamesVector.at(index) <<endl;
                        }
                        cout<<"first coord val "<<keyWord;
                        for (index = 0 ; index < coordVals.size(); ++index)
                        {
                                cout << "coord val at index "<<coordVals.at(index) <<endl;
                        }
						LOG(LTKLogger::LTK_LOGLEVEL_ERR)
		                  <<"Error : "<< EINKFILE_CORRUPTED <<":"<< getErrorMessage(EINKFILE_CORRUPTED)
				          <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;
						
						LTKReturnError(EINKFILE_CORRUPTED);
					}

					for(channelIndex = 1; channelIndex < channelNamesVector.size(); ++channelIndex)
					{
						if(channelNamesVector[channelIndex] == "T")
						{
							longChannelValue = atol((coordVals.at(channelIndex -1 )).c_str());

							point.push_back(longChannelValue);
						}
						else
						{
                            floatChannelValue = LTKStringUtil::convertStringToFloat(coordVals.at(channelIndex -1 ));

							point.push_back(floatChannelValue);
						}

					}

					trace.addPoint(point);

					point.clear();

				}
			}
		}
		else if(keyWord == ".PEN_UP")
		{
			if (!pendownFlag)
			{
				LOG(LTKLogger::LTK_LOGLEVEL_ERR)
		                  <<"Error : "<< EINKFILE_CORRUPTED <<":"<< getErrorMessage(EINKFILE_CORRUPTED)
				          <<"LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;
						
				LTKReturnError(EINKFILE_CORRUPTED);
			}			
		}
		else
		{
			if(keyWord == ".VERSION")
				verFlag = true;
			else if ((keyWord == ".HIERARCHY"))
				hlevelFlag = true;

			getline(infile, keyWord);
		}
	}
		
	int numberOfTraces = traceGroup.getNumTraces();
	
	if(numberOfTraces == 0)
	{
		LOG(LTKLogger::LTK_LOGLEVEL_ERR)
		      <<"Error : LTKInkFileReader::readUnipenInkFileWithAnnotation()" <<endl;
						
		LTKReturnError(EEMPTY_TRACE_GROUP);	
	}

	LOG( LTKLogger::LTK_LOGLEVEL_DEBUG) << 
	  " Exiting: LTKInkFileReader::readUnipenInkFileWithAnnotation()" << endl;
	
	return SUCCESS;
}



/**********************************************************************************
* AUTHOR		: Balaji R.
* DATE			: 23-DEC-2004
* NAME			: ~LTKInkFileReader
* DESCRIPTION	: destructor
* ARGUMENTS		: 
* RETURNS		: 
* NOTES			:
* CHANGE HISTROY
* Author			Date				Description of change
*************************************************************************************/

LTKInkFileReader::~LTKInkFileReader(){}