DRAMA C++ Intro   Class Hierarchy   Alphabetical List of types   List of Classes   File List   Class Member Index   File Members Index   Related Pages  

GitResetType Class Reference

#include <gittask.h>

Inheritance diagram for GitResetType:

GitEnum Git List of all members.

Detailed Description

A class used to represent the type of RESET operation.

This class is used to interpet the argument passed to the GIT RESET action..

This supports the various resets normally supported by GIT tasks, being SOFT, FULL and HARD. It also supports RECOVER, which is used by GitTask to only reset failed tasks.


Public Methods

 GitResetType (const SdsId &Id, const char *const Name, int Position, StatusType *status, const int Flags=Git::Upper|Git::Abbrev|Git::KeepErr)
 Construct a GitReset type from an action argument.

 GitResetType ()
 Construct a reset type object, defaulting to a Soft reset.

void SetRecover ()
 Set the reset type to Recover.

void SetSoft ()
 Set the reset type to Soft.

void SetHard ()
 Set the reset type to Hard.

void SetFull ()
 Set the reset type to Full.

bool IsSoft () const
 Return true if the reset type if Soft.

bool IsFull () const
 Return true if the rest type if Full.

bool IsHard () const
 Return true if the reset type is Hard.

bool IsRecover () const
 Return true if the reset type is Hard.

bool IsInvalid () const
 Return true if there is no valid reset type.

 operator const char * () const
 Return the reset type as a character string.


Constructor & Destructor Documentation

GitResetType::GitResetType const SdsId   Id,
const char *const    Name,
int    Position,
StatusType *    status,
const int    Flags = Git::Upper|Git::Abbrev|Git::KeepErr
[inline]
 

Construct a GitReset type from an action argument.

The specified SDS structure is examined for an item of the specified name. If it does not exist, then an item at the specified position is examined. The function attempts to set the GitReset type based on the value of this argument.

Parameters:
Id  The Sds ID of the structure containing the argument.
Name  The name of the item in the structure.
Position  The Position of the item in the structure. Only used if an item of the specified name does not exist. First item is 1.
status  Inherited status
Flags  Which Git flags to Apply. Defaults to (Git::Upper|Git::Abbrev|Git::KeepErr)

GitResetType::GitResetType   [inline]
 

Construct a reset type object, defaulting to a Soft reset.


Member Function Documentation

bool GitResetType::IsFull   const [inline]
 

Return true if the rest type if Full.

bool GitResetType::IsHard   const [inline]
 

Return true if the reset type is Hard.

bool GitResetType::IsInvalid   const [inline]
 

Return true if there is no valid reset type.

bool GitResetType::IsRecover   const [inline]
 

Return true if the reset type is Hard.

bool GitResetType::IsSoft   const [inline]
 

Return true if the reset type if Soft.

GitResetType::operator const char *   const [inline]
 

Return the reset type as a character string.

void GitResetType::SetFull   [inline]
 

Set the reset type to Full.

void GitResetType::SetHard   [inline]
 

Set the reset type to Hard.

void GitResetType::SetRecover   [inline]
 

Set the reset type to Recover.

void GitResetType::SetSoft   [inline]
 

Set the reset type to Soft.


The documentation for this class was generated from the following file:

Click here for the DRAMA home page and here for the AAO home page.

For more information, contact tjf@aaoepp.aao.gov.au 

Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by doxygen 1.2.18