EnglishJapanese Reload Front page List of pages Search Recent changes RSS of recent changes

Back to the top page
Back to the upper page


This class is a abstract base class for dealing with a data source.
Several methods such as TArtDataSource::Open, TArtDataSource::Close, TArtDataSource::Read andTArtDataSource::GetNextBlock shoud be implemented in each derived class.
The derived class itself might be a singleton.

Function members




Function documents

  • TArtDataSource(int id)

Assign id to fID.

  • virtual bool SMOpen(const int sid)

Return false.

  • virtual bool FileOpen(const char* sourceName)

Return false.

  • virtual int IsPrepared()

Mainly for shared memory data source to check data exists or not and lock semaphore.
Always return 1.

  • virtual int Wait()

Mainly for shared memory data source to unlock semaphore.
Always return 1.

Last-modified: Sun, 28 Oct 2012 21:02:11 HAST (4054d)