Statistics
| Branch: | Revision:

root / src / nedxml / nedtools.h @ 68da4f12

History | View | Annotate | Download (1.19 KB)

1 01873262 Georg Kunz
//==========================================================================
2
// nedtools.h -
3
//
4
//                     OMNeT++/OMNEST
5
//            Discrete System Simulation in C++
6
//
7
//==========================================================================
8
9
/*--------------------------------------------------------------*
10
  Copyright (C) 2002-2008 Andras Varga
11
  Copyright (C) 2006-2008 OpenSim Ltd.
12

13
  This file is distributed WITHOUT ANY WARRANTY. See the file
14
  `license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16
17
18
#ifndef __NEDTOOLS_H
19
#define __NEDTOOLS_H
20
21
#include "nedelements.h"
22
23
NAMESPACE_BEGIN
24
25
/**
26
 * Misc NED utilities
27
 *
28
 * @ingroup Validation
29
 */
30
class NEDXML_API NEDTools
31
{
32
  public:
33
    /**
34
     * Tries to makes a NEDElement tree comply with the DTD by gradually
35
     * discarding elements that fail DTD validation. Success is not guaranteed.
36
     */
37
    static void repairNEDElementTree(NEDElement *tree);
38
39
    /**
40
     * Splits each NEDFile under FilesElement to several files, to place
41
     * every module or interface into its own file.
42
     */
43
    static void splitToFiles(FilesElement *tree);
44
};
45
46
NAMESPACE_END
47
48
49
#endif