Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dmn::DB Class Reference

DB. More...

#include <db.h>

Inheritance diagram for dmn::DB:

Inheritance graph
[legend]
Collaboration diagram for dmn::DB:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool tournaments (std::list< ID > *tournaments)
 Tournaments in dmn.

bool matches_in_tournament (ID tournament, std::list< ID > *matches)
 Matches in a tournament.

ID tournament_of_match (ID match)
 Tournament owner of the match.

bool teams_in_tournament (ID tournament, std::list< ID > *teams)
 Teams in a tournament.

ID tournament_of_team (ID team)
 Tournament of the team.

bool displays_in_tournament (ID tournament, std::list< ID > *displays)
 Displays in a tournament.

ID tournament_of_display (ID display)
 Tournament of the display.

bool games_in_match (ID match, std::list< ID > *games)
 Games in a match.

ID match_of_game (ID game)
 Match owner of the game.

bool couples_in_match (ID match, std::list< ID > *couples)
 Couples in a match.

ID match_of_couple (ID couple)
 Match of the couple.

bool displays_in_match (ID match, std::list< ID > *displays)
 Displays in a match.

ID match_of_display (ID display)
 Match of the display.

bool hands_in_game (ID game, std::list< ID > *hands)
 Hands in a game.

ID game_of_hand (ID hand)
 Game owner of the hand.

bool couples_in_game (ID game, std::list< ID > *couples)
 Couples in a game.

ID game_of_couple (ID couple)
 Game of the couple.

bool displays_in_game (ID game, std::list< ID > *displays)
 Displays in a game.

ID game_of_display (ID display)
 Game of the display.

bool players_in_hand (ID hand, std::list< ID > *players)
 Players in a hand.

ID hand_of_player (ID player)
 Hand of the player.

bool displays_in_hand (ID hand, std::list< ID > *displays)
 Displays in a hand.

ID hand_of_display (ID display)
 Hand of the display.

bool sounds_in_hand (ID hand, std::list< ID > *sound)
 Sounds in a hand.

ID hand_of_sound (ID sound)
 Hand of the sound.

bool couples_in_team (ID team, std::list< ID > *couples)
 Couples in a team.

ID team_of_couple (ID couple)
 Team owner of the couple.

bool players_in_couple (ID couple, std::list< ID > *players)
 Players in a couple.

ID couple_of_player (ID player)
 Couple owner of the player.


Protected Member Functions

Tournamenttournament (ID tournament)
Matchmatch (ID match)
Gamegame (ID game)
Handhand (ID hand)
Playerplayer (ID player)
Displaydisplay (ID display)
Soundsound (ID sound)
bool new_tournament (Tournament *module)
bool new_match (Match *module, ID tournament)
bool new_game (Game *module, ID match)
bool new_hand (Hand *module, ID game)
bool new_team (Team *module)
bool new_couple (Couple *module, ID team)
bool new_player (Player *module, ID couple)
bool new_display (Display *module)
bool new_sound (Sound *module)
bool delete_tournament (ID tournament)
bool delete_match (ID match)
bool delete_game (ID game)
bool delete_hand (ID hand)
bool delete_team (ID team)
bool delete_couple (ID couple)
bool delete_player (ID player)
bool delete_display (ID display)
bool delete_sound (ID sound)
bool insert_team_in_tournament (ID team, ID tournament)
bool insert_display_in_tournament (ID display, ID tournament)
bool insert_couple_in_match (ID couple, ID match)
bool insert_display_in_match (ID display, ID match)
bool insert_couple_in_game (ID couple, ID game)
bool insert_display_in_game (ID display, ID game)
bool insert_player_in_hand (ID player, ID hand)
bool insert_display_in_hand (ID display, ID hand)
bool insert_sound_in_hand (ID sound, ID hand)
bool delete_team_from_tournament (ID team, ID tournament)
bool delete_display_from_tournament (ID display, ID tournament)
bool delete_couple_from_match (ID couple, ID match)
bool delete_display_from_match (ID display, ID match)
bool delete_couple_from_game (ID couple, ID game)
bool delete_display_from_game (ID display, ID game)
bool delete_player_from_hand (ID player, ID hand)
bool delete_display_from_hand (ID display, ID hand)
bool delete_sound_from_hand (ID sound, ID hand)
bool teams (std::list< ID > *teams)

Detailed Description

DB.

Relation beteen modules


Member Function Documentation

ID dmn::DB::couple_of_player ID  player  )  [virtual]
 

Couple owner of the player.

Parameters:
player identificator of the player
Returns:
DMN_ID_NULL if the player not exist or the identificator of the couple

Implements dmn::Core.

bool dmn::DB::couples_in_game ID  game,
std::list< ID > *  couples
[virtual]
 

Couples in a game.

If couples is NULL, nothing is returned

Parameters:
game identificator of the game
couples where to return the couples in a List_t
Returns:
true if exist the game

Implements dmn::Core.

bool dmn::DB::couples_in_match ID  match,
std::list< ID > *  couples
[virtual]
 

Couples in a match.

If couples is NULL, nothing is returned

Parameters:
match identificator of the match
couples where to return the couples in a List_t
Returns:
true if exist the match

Implements dmn::Core.

bool dmn::DB::couples_in_team ID  team,
std::list< ID > *  couples
[virtual]
 

Couples in a team.

If couples is NULL, nothing is returned

Parameters:
team identificator of the team
couples where to return the couples in a List_t
Returns:
true if exist the team

Implements dmn::Core.

bool dmn::DB::displays_in_game ID  game,
std::list< ID > *  displays
[virtual]
 

Displays in a game.

If displays is NULL, nothing is returned

Parameters:
game identificator of the game
displays where to return the displays in a List_t
Returns:
true if exist the game

Implements dmn::Core.

bool dmn::DB::displays_in_hand ID  hand,
std::list< ID > *  displays
[virtual]
 

Displays in a hand.

If displays is NULL, nothing is returned

Parameters:
hand identificator of the hand
displays where to return the displays in a List_t
Returns:
true if exist the hand

Implements dmn::Core.

bool dmn::DB::displays_in_match ID  match,
std::list< ID > *  displays
[virtual]
 

Displays in a match.

If displays is NULL, nothing is returned

Parameters:
match identificator of the match
displays where to return the displays in a List_t
Returns:
true if exist the match

Implements dmn::Core.

bool dmn::DB::displays_in_tournament ID  tournament,
std::list< ID > *  displays
[virtual]
 

Displays in a tournament.

If displays is NULL, nothing is returned

Parameters:
tournament identificator of the tournament
displays where to return the displays in a List_t
Returns:
true if exist the tournament

Implements dmn::Core.

ID dmn::DB::game_of_couple ID  couple  )  [virtual]
 

Game of the couple.

Parameters:
couple identificator of the couple
Returns:
DMN_ID_NULL if the couple not exist or the identificator of the game

Implements dmn::Core.

ID dmn::DB::game_of_display ID  display  )  [virtual]
 

Game of the display.

Parameters:
display identificator of the display
Returns:
DMN_ID_NULL if the display not exist or the identificator of the game

Implements dmn::Core.

ID dmn::DB::game_of_hand ID  hand  )  [virtual]
 

Game owner of the hand.

Parameters:
hand identificator of the hand
Returns:
DMN_ID_NULL if the hand not exist or the identificator of the game

Implements dmn::Core.

bool dmn::DB::games_in_match ID  match,
std::list< ID > *  games
[virtual]
 

Games in a match.

If games is NULL, nothing is returned

Parameters:
match identificator of the match
games where to return the games in a List_t
Returns:
true if exist the match

Implements dmn::Core.

ID dmn::DB::hand_of_display ID  display  )  [virtual]
 

Hand of the display.

Parameters:
display identificator of the display
Returns:
DMN_ID_NULL if the display not exist or the identificator of the hand

Implements dmn::Core.

ID dmn::DB::hand_of_player ID  player  )  [virtual]
 

Hand of the player.

Parameters:
player identificator of the player
Returns:
DMN_ID_NULL if the player not exist or the identificator of the hand

Implements dmn::Core.

ID dmn::DB::hand_of_sound ID  sound  )  [virtual]
 

Hand of the sound.

Parameters:
sound identificator of the sound
Returns:
DMN_ID_NULL if the sound not exist or the identificator of the hand

Implements dmn::Core.

bool dmn::DB::hands_in_game ID  game,
std::list< ID > *  hands
[virtual]
 

Hands in a game.

If hands is NULL, nothing is returned

Parameters:
game identificator of the game
hands where to return the hands in a List_t
Returns:
true if exist the game

Implements dmn::Core.

ID dmn::DB::match_of_couple ID  couple  )  [virtual]
 

Match of the couple.

Parameters:
couple identificator of the couple
Returns:
DMN_ID_NULL if the couple not exist or the identificator of the match

Implements dmn::Core.

ID dmn::DB::match_of_display ID  display  )  [virtual]
 

Match of the display.

Parameters:
display identificator of the display
Returns:
DMN_ID_NULL if the display not exist or the identificator of the match

Implements dmn::Core.

ID dmn::DB::match_of_game ID  game  )  [virtual]
 

Match owner of the game.

Parameters:
game identificator of the game
Returns:
DMN_ID_NULL if the game not exist or the identificator of the match

Implements dmn::Core.

bool dmn::DB::matches_in_tournament ID  tournament,
std::list< ID > *  matches
[virtual]
 

Matches in a tournament.

If matches is NULL, nothings is returned

Parameters:
tournament identificator of the tournament
matches where to return the matches in a List_t
Returns:
true if exist the tournament

Implements dmn::Core.

bool dmn::DB::players_in_couple ID  couple,
std::list< ID > *  players
[virtual]
 

Players in a couple.

If players is NULL, nothing is returned

Parameters:
couple identificator of the couple
players where to return the players in a List_t
Returns:
true if exist the couple

Implements dmn::Core.

bool dmn::DB::players_in_hand ID  hand,
std::list< ID > *  players
[virtual]
 

Players in a hand.

If players is NULL, nothing is returned

Parameters:
hand identificator of the hand
players where to return the players in a List_t
Returns:
true if exist the hand

Implements dmn::Core.

bool dmn::DB::sounds_in_hand ID  hand,
std::list< ID > *  sound
[virtual]
 

Sounds in a hand.

If sounds is NULL, nothing is returned

Parameters:
hand identificator of the hand
sounds where to return the sounds in a List_t
Returns:
true if exist the hand

Implements dmn::Core.

ID dmn::DB::team_of_couple ID  couple  )  [virtual]
 

Team owner of the couple.

Parameters:
couple identificator of the couple
Returns:
DMN_ID_NULL if the couple not exist or the identificator of the team

Implements dmn::Core.

bool dmn::DB::teams_in_tournament ID  tournament,
std::list< ID > *  teams
[virtual]
 

Teams in a tournament.

If teams is NULL, nothing is returned

Parameters:
tournament identificator of the tournament
teams where to return the teams in a List_t
Returns:
true if exist the tournament

Implements dmn::Core.

ID dmn::DB::tournament_of_display ID  display  )  [virtual]
 

Tournament of the display.

Parameters:
display identificator of the display
Returns:
DMN_ID_NULL if the display not exist or the identificator of the tournament

Implements dmn::Core.

ID dmn::DB::tournament_of_match ID  match  )  [virtual]
 

Tournament owner of the match.

Parameters:
match identificator of the match
Returns:
DMN_ID_NULL if the match not exist or the identificator of the tournament

Implements dmn::Core.

ID dmn::DB::tournament_of_team ID  team  )  [virtual]
 

Tournament of the team.

Parameters:
team identificator of the team
Returns:
DMN_ID_NULL if the team not exist or the identificator of the tournament

Implements dmn::Core.

bool dmn::DB::tournaments std::list< ID > *  tournaments  )  [virtual]
 

Tournaments in dmn.

If tournaments is NULL, nothings is returned

Parameters:
tournaments where to return the tournaments in a List_t
Returns:
true if there are some tournament

Implements dmn::Core.


The documentation for this class was generated from the following file:
Generated on Fri Dec 26 22:54:33 2003 for dmn by doxygen 1.3.4