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

Back to the top page
Back to the upper page

Description

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

protected

public

private

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 22:02:11 HADT (4363d)