mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
45 lines
1.5 KiB
C++
45 lines
1.5 KiB
C++
/***************************************************************************
|
|
rlsvgcat.h - description
|
|
-------------------
|
|
begin : Tue Apr 09 2006
|
|
copyright : (C) 2006 by R. Lehrig
|
|
email : lehrig@t-online.de
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* This library is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
|
|
* published by the Free Software Foundation *
|
|
* *
|
|
***************************************************************************/
|
|
#ifndef _RL_SVG_CAT_
|
|
#define _RL_SVG_CAT_
|
|
|
|
#include "rldefine.h"
|
|
|
|
/*! <pre>
|
|
This class will normalize SVG XML files so that
|
|
- lines are left justified
|
|
- 1 tag per line
|
|
</pre> */
|
|
class rlSvgCat
|
|
{
|
|
public:
|
|
rlSvgCat();
|
|
virtual ~rlSvgCat();
|
|
int open(const char *infile, const char *outfile = 0);
|
|
int reopenSocket(const char *infile, int s);
|
|
void cat();
|
|
void close();
|
|
private:
|
|
int outUntil(int i, const char *tag);
|
|
int outUntilEnd(int i);
|
|
int outValue(int i);
|
|
void catline();
|
|
void *fin, *fout;
|
|
int s;
|
|
char line[256*256];
|
|
};
|
|
#endif
|