DAFile.h #1

  • //
  • guest/
  • sam_stafford/
  • deepannotate/
  • DAFile.h
  • View
  • Commits
  • Open Download .zip Download (622 B)
// Must include <clientapi.h>

class DALine;
class DARev;
class DATextTable;

class DAFile
{
public:
	DAFile( DATextTable* table );
	~DAFile(void);

	void setPath( const StrPtr* path );
	DARev* addRev( int num, int change );
	DALine* addLine( const StrPtr* text, int up, int lo );

	const StrPtr&	getPath() { return path; };

	DARev*	getRev( int num );
	DARev*	getNextRev( int num );
	DARev*	getLastRev( int num );
	int		head();

	DALine* firstLine();
	DALine* lastLine();
	DALine* zeroLine() { return lineZero; };

private:
	StrBuf path;

	DARev**	revArray;
	int		arrSize;

	DALine* lineZero;
	DATextTable* textTable;
};
# Change User Description Committed
#1 6297 Sam Stafford Work so far on "deep annotate".
 Been getting a lot of questions on
this lately from other people working on the same thing; might as well
pool efforts.