| 34 | } |
| 35 | |
| 36 | float CurveSetTime( IRoot* owner, const char* name ) |
| 37 | { |
| 38 | ITr2CurveSetOwnerPtr csOwner = BlueCastPtr( owner ); |
| 39 | if( !csOwner ) |
| 40 | { |
| 41 | return 0; |
| 42 | } |
| 43 | if( auto slash = strchr( name, '/' ) ) |
| 44 | { |
| 45 | std::string csName = name; |
| 46 | std::string rangeName = csName.substr( slash - name + 1 ); |
| 47 | csName = csName.substr( 0, slash - name ); |
| 48 | return csOwner->GetRangeDuration( csName, rangeName ); |
| 49 | } |
| 50 | else |
| 51 | { |
| 52 | return csOwner->GetCurveSetDuration( name ); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | float GetExternalControllerVariable( IRoot* ctx, const char* name, float defaultVal ) |
| 57 | { |
nothing calls this directly
no test coverage detected