* Delete a ControlPoint from the network by the point's address. * * @param point The point to delete */
| 873 | * @param point The point to delete |
| 874 | */ |
| 875 | int ControlNet::DeletePoint(ControlPoint *point) { |
| 876 | if (points->values().contains(point)) { |
| 877 | return DeletePoint(point->GetId()); |
| 878 | } |
| 879 | else { |
| 880 | IString msg = "point ["; |
| 881 | msg += (long) point; |
| 882 | msg += "] does not exist in the network"; |
| 883 | throw IException(IException::User, msg, _FILEINFO_); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | |
| 888 | /** |