My Project
ContactOption Class Reference

the ContactOption class. More...

#include <OSOption.h>

Public Member Functions

 ContactOption ()
 Default constructor.
 
 ~ContactOption ()
 Class destructor.
 
bool IsEqual (ContactOption *that)
 A function to check for the equality of two objects.
 
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class.
 
bool deepCopyFrom (ContactOption *that)
 A function to make a deep copy of an instance of this class.
 

Public Attributes

std::string transportType
 the contact mechanism
 
std::string value
 the value of the <contact> element
 

Detailed Description

the ContactOption class.

Author
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 21/07/2008
Since
OS 1.1
Remarks
A data structure class that corresponds to the contact method in the OSoL schema.

Definition at line 96 of file OSOption.h.

Constructor & Destructor Documentation

◆ ContactOption()

ContactOption::ContactOption ( )

Default constructor.

Definition at line 49 of file OSOption.cpp.

◆ ~ContactOption()

ContactOption::~ContactOption ( )

Class destructor.

Definition at line 58 of file OSOption.cpp.

Member Function Documentation

◆ IsEqual()

bool ContactOption::IsEqual ( ContactOption * that)

A function to check for the equality of two objects.

Definition at line 10024 of file OSOption.cpp.

◆ setRandom()

bool ContactOption::setRandom ( double density,
bool conformant )

A function to make a random instance of this class.

Parameters
densitycorresponds to the probability that a particular child element is created
conformantif true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children)

Definition at line 12463 of file OSOption.cpp.

◆ deepCopyFrom()

bool ContactOption::deepCopyFrom ( ContactOption * that)

A function to make a deep copy of an instance of this class.

Parameters
thatthe instance from which information is to be copied
Returns
whether the copy was created successfully

Definition at line 13587 of file OSOption.cpp.

Member Data Documentation

◆ transportType

std::string ContactOption::transportType

the contact mechanism

Definition at line 101 of file OSOption.h.

◆ value

std::string ContactOption::value

the value of the <contact> element

Definition at line 104 of file OSOption.h.


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