forked from SAP-archive/fedem-mdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FmCamFriction.C
47 lines (34 loc) · 1005 Bytes
/
FmCamFriction.C
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
// SPDX-FileCopyrightText: 2023 SAP SE
//
// SPDX-License-Identifier: Apache-2.0
//
// This file is part of FEDEM - https://openfedem.org
////////////////////////////////////////////////////////////////////////////////
#include <cstdio>
#include "FFaLib/FFaString/FFaParse.H"
#include "vpmDB/FmCamFriction.H"
Fmd_DB_SOURCE_INIT(FcCAM_FRICTION, FmCamFriction, FmTransFriction);
FmCamFriction::FmCamFriction() : FmTransFriction()
{
Fmd_CONSTRUCTOR_INIT(FmCamFriction);
}
std::ostream& FmCamFriction::writeFMF(std::ostream& os)
{
os <<"CAM_FRICTION\n{\n";
this->writeFields(os);
os <<"}\n\n";
return os;
}
bool FmCamFriction::readAndConnect(std::istream& is, std::ostream&)
{
FmCamFriction* obj = new FmCamFriction();
while (is.good())
{
std::stringstream activeStatement;
char keyWord[BUFSIZ];
if (FaParse::parseFMFASCII(keyWord, is, activeStatement, '=', ';'))
FmFrictionBase::localParse(keyWord, activeStatement, obj);
}
obj->connect();
return true;
}