Deprecated the Kinetics::ID() method

The type() method should be used instead.
This commit is contained in:
Ray Speth
2012-02-28 19:01:27 +00:00
parent e5da0d268d
commit bb72897c8b
6 changed files with 16 additions and 6 deletions

View File

@@ -110,7 +110,10 @@ public:
*/
virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const;
virtual int ID() const {
/**
* @deprecated use type() instead
*/
DEPRECATED(virtual int ID() const) {
return cAqueousKinetics;
}
virtual int type() const {

View File

@@ -65,8 +65,9 @@ public:
/**
* Identifies the subclass of the Kinetics manager type.
* These are listed in mix_defs.h.
* @deprecated use type() instead.
*/
virtual int ID() const {
DEPRECATED(virtual int ID() const) {
return cEdgeKinetics;
}

View File

@@ -32,7 +32,10 @@ public:
/// Destructor.
virtual ~GRI_30_Kinetics() {}
virtual int ID() const {
/**
* @deprecated use type() instead
*/
DEPRECATED(virtual int ID() const) {
return cGRI_30_Kinetics;
}
virtual int type() const {

View File

@@ -133,8 +133,9 @@ public:
//! Identifies the subclass of the Kinetics manager type.
/*!
* These are listed in mix_defs.h.
* @deprecated use type() instead
*/
virtual int ID() const {
DEPRECATED(virtual int ID() const) {
return cGasKinetics;
}

View File

@@ -154,7 +154,8 @@ public:
virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const;
//! Return the ID of the kinetics object
virtual int ID() const;
//! @deprecated use type() instead
DEPRECATED(virtual int ID() const);
//! Retunr the type of the kinetics object
virtual int type() const;

View File

@@ -197,8 +197,9 @@ public:
//! Identifies the subclass of the Kinetics manager type.
/*!
* These are listed in mix_defs.h.
* @deprecated use type() instead
*/
virtual int ID() const;
DEPRECATED(virtual int ID() const);
//! Identifies the kinetics manager type.
/*!