summaryrefslogtreecommitdiff
path: root/libs/util/include
diff options
context:
space:
mode:
authorgeronimo <geronimo013@gmx.de>2012-07-22 11:38:43 +0200
committergeronimo <geronimo013@gmx.de>2012-07-22 11:38:43 +0200
commitab7186c6c116629983dc506c4b53794026518455 (patch)
treef5508dd32f35509fb45f7cf046a0a8e0bc1c4605 /libs/util/include
parent04a867b018a8c6761047ef8878a4434692673084 (diff)
downloadcmp-ab7186c6c116629983dc506c4b53794026518455.tar.gz
cmp-ab7186c6c116629983dc506c4b53794026518455.tar.bz2
worked out new file class
Diffstat (limited to 'libs/util/include')
-rw-r--r--libs/util/include/AbstractListAssembler.h2
-rw-r--r--libs/util/include/Codec.h2
-rw-r--r--libs/util/include/JSonWriter.h14
-rw-r--r--libs/util/include/MD5Calculator.h2
-rw-r--r--libs/util/include/ManagedMap.h2
-rw-r--r--libs/util/include/ManagedVector.h2
-rw-r--r--libs/util/include/NamedValue.h2
-rw-r--r--libs/util/include/StringBuilder.h9
-rw-r--r--libs/util/include/util.h2
9 files changed, 21 insertions, 16 deletions
diff --git a/libs/util/include/AbstractListAssembler.h b/libs/util/include/AbstractListAssembler.h
index 1e547e4..bf0c81f 100644
--- a/libs/util/include/AbstractListAssembler.h
+++ b/libs/util/include/AbstractListAssembler.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: AbstractListAssembler.h
- * Created: 6. Juli 2012, 09:38
+ * Created: 6. Juli 2012, 09
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
diff --git a/libs/util/include/Codec.h b/libs/util/include/Codec.h
index 80352d7..ceaea70 100644
--- a/libs/util/include/Codec.h
+++ b/libs/util/include/Codec.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: Codec.h
- * Created: 21. Mai 2012, 14:00
+ * Created: 21. Mai 2012, 14
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
diff --git a/libs/util/include/JSonWriter.h b/libs/util/include/JSonWriter.h
index 732daec..e20c240 100644
--- a/libs/util/include/JSonWriter.h
+++ b/libs/util/include/JSonWriter.h
@@ -1,25 +1,25 @@
/**
* ======================== legal notice ======================
- *
+ *
* File: JSonWriter.h
- * Created: 6. Juli 2012, 12:47
+ * Created: 6. Juli 2012, 12
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
- *
+ *
* CMP - compound media player
- *
+ *
* is a client/server mediaplayer intended to play any media from any workstation
* without the need to export or mount shares. cmps is an easy to use backend
* with a (ready to use) HTML-interface. Additionally the backend supports
* authentication via HTTP-digest authorization.
* cmpc is a client with vdr-like osd-menues.
- *
+ *
* Copyright (c) 2012 Reinhard Mantey, some rights reserved!
* published under Creative Commons by-sa
* For details see http://creativecommons.org/licenses/by-sa/3.0/
- *
+ *
* The cmp project's homepage is at http://projects.vdr-developer.org/projects/cmp
- *
+ *
* --------------------------------------------------------------
*/
#ifndef JSONWRITER_H
diff --git a/libs/util/include/MD5Calculator.h b/libs/util/include/MD5Calculator.h
index 400aba1..0dca5d4 100644
--- a/libs/util/include/MD5Calculator.h
+++ b/libs/util/include/MD5Calculator.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: MD5Calculator.h
- * Created: 3. Juli 2012, 13:15
+ * Created: 3. Juli 2012, 13
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
diff --git a/libs/util/include/ManagedMap.h b/libs/util/include/ManagedMap.h
index c71de85..c780a6f 100644
--- a/libs/util/include/ManagedMap.h
+++ b/libs/util/include/ManagedMap.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: ManagedMap.h
- * Created: 7. Juli 2012, 08:28
+ * Created: 7. Juli 2012, 08
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
diff --git a/libs/util/include/ManagedVector.h b/libs/util/include/ManagedVector.h
index 7fa7af2..b4ca9a2 100644
--- a/libs/util/include/ManagedVector.h
+++ b/libs/util/include/ManagedVector.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: ManagedVector.h
- * Created: 6. Juli 2012, 19:07
+ * Created: 6. Juli 2012, 19
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
diff --git a/libs/util/include/NamedValue.h b/libs/util/include/NamedValue.h
index 329061d..8730d3d 100644
--- a/libs/util/include/NamedValue.h
+++ b/libs/util/include/NamedValue.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: NamedValue.h
- * Created: 3. Juli 2012, 17:43
+ * Created: 3. Juli 2012, 17
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
diff --git a/libs/util/include/StringBuilder.h b/libs/util/include/StringBuilder.h
index aea9975..a0e7259 100644
--- a/libs/util/include/StringBuilder.h
+++ b/libs/util/include/StringBuilder.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: StringBuilder.h
- * Created: 6. Juli 2012, 10:54
+ * Created: 6. Juli 2012, 10
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*
@@ -35,6 +35,7 @@ public:
virtual ~cStringBuilder();
cStringBuilder &Append(const char *Text);
+ cStringBuilder &Append(char c);
cStringBuilder &Append(bool v, const char *TrueValue = "X", const char *FalseValue="-");
cStringBuilder &Append(double v);
cStringBuilder &Append(int v);
@@ -47,12 +48,16 @@ public:
void Rewind(void) { readOffset = 0; }
size_t Copy(char *Buf, size_t BufSize);
+ char *toString(void);
+
private:
void init(void);
void Write(const char *p);
int chunkSize;
size_t readOffset; ///< read offest is the offset over all chunks (thus goes from 0 to size)
- int writeOffset; ///< write offset is the offset inside the last chunk (thus goes from 0 to chunkSize)
+ ///< Copy can be called subsequently, if Buf is smaller than StringBuilders size
+ int writeOffset; ///< write offset is the offset inside the last chunk (thus goes from 0 to chunkSize)
+ char *firstChunk; ///< for debugging purpose only
cManagedVector pool;
};
diff --git a/libs/util/include/util.h b/libs/util/include/util.h
index 2b355cc..daa9b8f 100644
--- a/libs/util/include/util.h
+++ b/libs/util/include/util.h
@@ -2,7 +2,7 @@
* ======================== legal notice ======================
*
* File: util.h
- * Created: 3. Juli 2012, 13:00
+ * Created: 3. Juli 2012, 13
* Author: <a href="mailto:geronimo013@gmx.de">Geronimo</a>
* Project: libutil - base classes used by other libraries
*