#include "StdString.h"
#include <string.h>
#include "types.h"
#include "mop.h"
#include "iopcStrings.h"
#include "iopcCommon.h"
#include "occCommon.h"
#include "iopcMappingType.h"
#include "iopcDefines.h"
#include "getProcessPath.h"
Include dependency graph for iopcSpMain.cpp:
Functions | |
void | showProgramInfo () |
void | showHelpHint () |
void | showHelp () |
int | addSourceFile (char *arg, list< CStdString > &sourceFiles, bool useMissingParameterMsg, bool permitMoreSourceFiles) |
void | parseCommandLine (int from, int argc, char **argv, list< CStdString > &sourceFiles) |
void | setOptions (int argc, char **argv, list< CStdString > &sourceFiles) |
void | guessProjectName (const char *sourceFile) |
void | cleanupFunction (int) |
int | main (int argc, char **argv) |
Variables | |
bool | saveMetadata |
CStdString | metadataWriterProjectName |
CStdString | metadataWriterOutputLocation |
IopcMappingType | defaultMappingType |
CStdString | sourceFile |
|
Shows one-line info about IOPC SP - SP_PROGRAM_INFO.
|
|
Shows hint how to get help on IOPC SP use - SP_HELP_HINT.
|
|
Shows help on IOPC SP use - SP_HELP.
|
|
Adds source file to the list of source files to be processed.
Tests whether
|
|
Parses IOPC SP's command line, sets IOPC SP / OpenC++ options.
|
|
Sets default values of IOPC SP / OpenC++ options, then calls parseCommandLine().
|
|
If user doesn't supply project name, this function guess one and saves it into metadataWriterProjectName.
|
|
Function that is called before IOPC SP terminates.
|
|
Main function of IOPC SP.
|
|
If this flag is set, no source files are parsed / translated but the MetadataWriter is called to "link" information from its temporary files to create the final form of metadata. Set by setOptions() / parseCommandLine(). |
|
Name of the project to which the parsed source file belongs. Used when saving metadata (MetadataWriter::saveMetadata()) and later in IOPC DBSC when creating project's database schema.
|
|
Location (file) into which the final representation of project's metadata should be saved. Set by setOptions() / parseCommandLine(). |
|
Default mapping type - if saving the final representation of project's metadata, mapping type of all classes that have no parents is set to Set by setOptions() / parseCommandLine(). |
|
Name of source file that is currently processed by IOPC SP. Used by IopcTranslatingSupport when calling MetadataWriter::addClass(). |