29 lines
431 B
C++
29 lines
431 B
C++
|
|
// Mount.cpp
|
|
// Author: Josh Holtrop
|
|
// Date: 06/16/04
|
|
// Modified: 06/16/04
|
|
|
|
#include "lang/string.h"
|
|
#include "Mount.h"
|
|
|
|
Mount::Mount()
|
|
{
|
|
}
|
|
|
|
|
|
Mount::Mount(string dev, string mount)
|
|
{
|
|
mountPoint = mount;
|
|
device = dev;
|
|
}
|
|
|
|
|
|
bool Mount::operator==(const Mount & second) const
|
|
{
|
|
/* Match *either* device or mountPoint to signal an invalid mount attempt */
|
|
return (device == second.device || mountPoint == second.mountPoint);
|
|
}
|
|
|
|
|