- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# BaseModelUtils Class Reference

`#include <BaseModelUtils.h>`

List of all members.

## Static Public Member Functions
static int | setName (char *&name, char const *newName)

## Detailed Description

Contains common routines that several BaseModelObjects share but aren't appropriate for placement in BaseModelObject

Definition at line 28 of file BaseModelUtils.h.

## Member Function Documentation

int BaseModelUtils::setName | ( | char *& | name,
|  | char const * | newName |
| ) |  |  | `[static]`

Sets the name to newName - this function makes a copy of the string if the string is NULL, name will be NULL

Parameters:

  | name | the origional name of the object, if any. The copy of newName is returned here.
  | newName | the new name to copy

Returns:
  0 on success or a positive number if there was insufficient memory to copy newName

Definition at line 29 of file BaseModelUtils.cpp.

Referenced by Mers::Models::Base::BaseModelVariable::setName(), Mers::Models::Base::BaseModelValue::setName(), Mers::Models::Base::BaseModelDomain::setName(), and Mers::Models::Base::BaseModel::setName().

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

- /Users/fpy/titan-1-5-MBARI/Mers/Models/Base/BaseModelUtils.h
- /Users/fpy/titan-1-5-MBARI/Mers/Models/Base/BaseModelUtils.cpp