CPP05 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Form クラス

Represents a form that needs to be signed and executed. [詳解]

#include <Form.hpp>

Form 連携図
Collaboration graph

クラス

class  GradeTooHighException
 
class  GradeTooLowException
 

公開メンバ関数

 Form (const std::string &name, int gradeToSign, int gradeToExecute)
 Construct a new Form object. Checks if grades are within the valid range (1-150).
 
 Form (const Form &other)
 Copy constructor for Form.
 
Formoperator= (const Form &other)
 Assignment operator for Form. Only the signed status is copied as other members are const.
 
 ~Form ()
 Destroys the Form object.
 
const std::stringgetName () const
 
bool getIsSigned () const
 
int getGradeToSign () const
 
int getGradeToExecute () const
 
void beSigned (const Bureaucrat &bureaucrat)
 Sets the form's status to signed if the bureaucrat's grade is sufficient.
 

詳解

Represents a form that needs to be signed and executed.

Form.hpp32 行目に定義があります。

構築子と解体子

◆ Form() [1/2]

Form::Form ( const std::string name,
int  gradeToSign,
int  gradeToExecute 
)

Construct a new Form object. Checks if grades are within the valid range (1-150).

引数
nameName of the form.
gradeToSignGrade required to sign the form.
gradeToExecuteGrade required to execute the form.
例外
Form::GradeTooHighExceptionif any grade is < 1.
Form::GradeTooLowExceptionif any grade is > 150.

Form.cpp30 行目に定義があります。

◆ Form() [2/2]

Form::Form ( const Form other)

Copy constructor for Form.

Form.cpp44 行目に定義があります。

◆ ~Form()

Form::~Form ( )

Destroys the Form object.

Form.cpp65 行目に定義があります。

関数詳解

◆ beSigned()

void Form::beSigned ( const Bureaucrat bureaucrat)

Sets the form's status to signed if the bureaucrat's grade is sufficient.

引数
bureaucratThe bureaucrat attempting to sign the form.
例外
Form::GradeTooLowExceptionif the bureaucrat's grade is too low.

Form.cpp79 行目に定義があります。

◆ getGradeToExecute()

int Form::getGradeToExecute ( ) const

Form.cpp71 行目に定義があります。

◆ getGradeToSign()

int Form::getGradeToSign ( ) const

Form.cpp70 行目に定義があります。

◆ getIsSigned()

bool Form::getIsSigned ( ) const

Form.cpp69 行目に定義があります。

◆ getName()

const std::string & Form::getName ( ) const

Form.cpp68 行目に定義があります。

◆ operator=()

Form & Form::operator= ( const Form other)

Assignment operator for Form. Only the signed status is copied as other members are const.

Form.cpp54 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: