LCOV - code coverage report
Current view: top level - Core/OXPVerifier - OOOXPVerifier.h (source / functions) Hit Total Coverage
Test: coverxygen.info Lines: 1 19 5.3 %
Date: 2025-05-28 07:50:54 Functions: 0 0 -

          Line data    Source code
       1           0 : /*
       2             : 
       3             : OOOXPVerifier.h
       4             : 
       5             : Oolite expansion pack verification manager.
       6             : 
       7             : NOTE: the overall design is discussed in OXP verifier design.txt.
       8             : 
       9             : 
      10             : Copyright (C) 2007-2013 Jens Ayton and contributors
      11             : 
      12             : Permission is hereby granted, free of charge, to any person obtaining a copy
      13             : of this software and associated documentation files (the "Software"), to deal
      14             : in the Software without restriction, including without limitation the rights
      15             : to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      16             : copies of the Software, and to permit persons to whom the Software is
      17             : furnished to do so, subject to the following conditions:
      18             : 
      19             : The above copyright notice and this permission notice shall be included in all
      20             : copies or substantial portions of the Software.
      21             : 
      22             : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      23             : IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      24             : FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      25             : AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      26             : LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      27             : OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      28             : SOFTWARE.
      29             : 
      30             : */
      31             : 
      32             : #ifndef OO_OXP_VERIFIER_ENABLED
      33             :         #ifdef NDEBUG
      34             :                 #define OO_OXP_VERIFIER_ENABLED 0
      35             :         #else
      36           0 :                 #define OO_OXP_VERIFIER_ENABLED 1
      37             :         #endif
      38             : #endif
      39             : 
      40             : #if OO_OXP_VERIFIER_ENABLED
      41             : 
      42             : #import "OOCocoa.h"
      43             : 
      44             : @class OOOXPVerifierStage;
      45             : 
      46             : 
      47           0 : @interface OOOXPVerifier: NSObject
      48             : {
      49             : @private
      50           0 :         NSDictionary                            *_verifierPList;
      51             :         
      52           0 :         NSString                                        *_basePath;
      53           0 :         NSString                                        *_displayName;
      54             :         
      55           0 :         NSMutableDictionary                     *_stagesByName;
      56           0 :         NSMutableSet                            *_waitingStages;
      57             :         
      58           0 :         BOOL                                            _openForRegistration;
      59             : }
      60             : 
      61             : /*      Look for command-line arguments requesting OXP verification. If any are
      62             :         found, run the verification and return YES. Otherwise, return NO.
      63             :         
      64             :         At the moment, only one OXP may be verified per run; additional requests
      65             :         are ignored.
      66             : */
      67           1 : + (BOOL)runVerificationIfRequested;
      68             : 
      69             : 
      70             : /*      Stage registration. Currently, stages are registered by OOOXPVerifier
      71             :         itself. Stages may also register other stages - substages, as it were -
      72             :         in their -initWithVerifier: methods, or when -dependencies or
      73             :         -dependents are called. Registration at later points is not permitted.
      74             : */
      75           0 : - (void)registerStage:(OOOXPVerifierStage *)stage;
      76             : 
      77             : 
      78             : //      All other methods are for use by verifier stages.
      79           0 : - (NSString *)oxpPath;
      80           0 : - (NSString *)oxpDisplayName;
      81             : 
      82           0 : - (id)stageWithName:(NSString *)name;
      83             : 
      84             : // Read from verifyOXP.plist
      85           0 : - (id)configurationValueForKey:(NSString *)key;
      86           0 : - (NSArray *)configurationArrayForKey:(NSString *)key;
      87           0 : - (NSDictionary *)configurationDictionaryForKey:(NSString *)key;
      88           0 : - (NSString *)configurationStringForKey:(NSString *)key;
      89           0 : - (NSSet *)configurationSetForKey:(NSString *)key;
      90             : 
      91             : @end
      92             : 
      93             : #endif

Generated by: LCOV version 1.14