mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能
This commit is contained in:
44
libs/pvb/include/rllib/rlsvgcat.h
Normal file
44
libs/pvb/include/rllib/rlsvgcat.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/***************************************************************************
|
||||
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
|
||||
Reference in New Issue
Block a user