You can simply make the name field of the base class public. Or you can implement a public member
const wchar_t *Name() {
return name.c_str();
}
in the base class, which is a "nicer" thing to do, or this
const wstring &getName() const {
return name;
}
(I believe that one is already there, you can use it directly).
But, you may want to make a new project, and generate a unit operation in there. This will ask you to put down the entire implementation of the unit operation. Have a look at the collection class that is generated there. You could copy this class into your existing project.
This collection keeps both a vector of the objects and a hash map of the indexes of the objects by name. Considerably more efficient in case there are more than a few items in the collection.