forked from ff6347/mpolauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMPOLnchNodeID.cpp
71 lines (57 loc) · 1.57 KB
/
MPOLnchNodeID.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//========================================================================================
//
// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchNodeID.cpp $
//
// Owner: Adobe Developer Technologies
//
// $Author: pmbuilder $
//
// $DateTime: 2008/08/19 04:03:07 $
//
// $Revision: #1 $
//
// $Change: 643572 $
//
// Copyright 1997-2008 Adobe Systems Incorporated. All rights reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
// with the terms of the Adobe license agreement accompanying it. If you have received
// this file from a source other than Adobe, then your use, modification, or
// distribution of it requires the prior written permission of Adobe.
//
//========================================================================================
#include "VCPlugInHeaders.h"
// Interface includes:
#include "IPMStream.h"
// Project includes:
#include "MPOLnchNodeID.h"
/**
@ingroup mpolauncher
*/
/* Compare
*/
int32 MPOLnchNodeID::Compare(const NodeIDClass* nodeID) const
{
const MPOLnchNodeID* oneNode = static_cast<const MPOLnchNodeID*>(nodeID);
ASSERT(nodeID);
return fName.Compare(kTrue, oneNode->GetName());
}
/* Clone
*/
NodeIDClass* MPOLnchNodeID::Clone() const
{
return new MPOLnchNodeID(this->GetName());
}
/* Read
*/
void MPOLnchNodeID::Read(IPMStream* stream)
{
fName.ReadWrite(stream);
}
/* Write
*/
void MPOLnchNodeID::Write(IPMStream* stream) const
{
(const_cast<MPOLnchNodeID*>(this)->fName).ReadWrite(stream);
}
// end, File: PnlTrvDataNode.cpp