Lines Class Reference

#include <ArmarXCore/libraries/cppgen/MetaWriter.h>

Public Types

enum  LineType { StartBlock, EndBlock, Normal, Empty }
 

Public Member Functions

void endBlock ()
 
void endBlock (const std::string &line)
 
void endBlockComment (std::string comment)
 
void enforceEmptyLine ()
 
Lines::LineType getLastLineType ()
 
void line ()
 
void line (const std::string &line, int indentDelta=0)
 
void lineCheckDuplicate (const std::string &line, int indentDelta=0)
 
 Lines ()=delete
 
 Lines (const std::string &, const std::string &=" ", const LineType=LineType::Empty)
 
void startBlock ()
 
void startBlock (const std::string &line)
 

Public Attributes

int indent = 0
 
std::vector< std::string > lines
 
std::string name
 
std::stringstream ss
 

Detailed Description

Definition at line 39 of file MetaWriter.h.

Member Enumeration Documentation

◆ LineType

enum LineType
strong
Enumerator
StartBlock 
EndBlock 
Normal 
Empty 

Definition at line 42 of file MetaWriter.h.

Constructor & Destructor Documentation

◆ Lines() [1/2]

Lines ( )
delete

◆ Lines() [2/2]

Lines ( const std::string &  name,
const std::string &  i = "    ",
const LineType  t = LineType::Empty 
)

Definition at line 28 of file MetaWriter.cpp.

Member Function Documentation

◆ endBlock() [1/2]

void endBlock ( )

Definition at line 49 of file MetaWriter.cpp.

+ Here is the call graph for this function:

◆ endBlock() [2/2]

void endBlock ( const std::string &  line)

Definition at line 56 of file MetaWriter.cpp.

+ Here is the call graph for this function:

◆ endBlockComment()

void endBlockComment ( std::string  comment)

Definition at line 63 of file MetaWriter.cpp.

+ Here is the call graph for this function:

◆ enforceEmptyLine()

void enforceEmptyLine ( )

Definition at line 111 of file MetaWriter.cpp.

+ Here is the caller graph for this function:

◆ getLastLineType()

Lines::LineType getLastLineType ( )

Definition at line 131 of file MetaWriter.cpp.

+ Here is the caller graph for this function:

◆ line() [1/2]

void line ( )

Definition at line 115 of file MetaWriter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ line() [2/2]

void line ( const std::string &  line,
int  indentDelta = 0 
)

Definition at line 70 of file MetaWriter.cpp.

+ Here is the call graph for this function:

◆ lineCheckDuplicate()

void lineCheckDuplicate ( const std::string &  line,
int  indentDelta = 0 
)

Definition at line 90 of file MetaWriter.cpp.

+ Here is the call graph for this function:

◆ startBlock() [1/2]

void startBlock ( )

Definition at line 34 of file MetaWriter.cpp.

+ Here is the call graph for this function:

◆ startBlock() [2/2]

void startBlock ( const std::string &  line)

Definition at line 41 of file MetaWriter.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ indent

int indent = 0

Definition at line 47 of file MetaWriter.h.

◆ lines

std::vector<std::string> lines

Definition at line 46 of file MetaWriter.h.

◆ name

std::string name

Definition at line 44 of file MetaWriter.h.

◆ ss

std::stringstream ss

Definition at line 45 of file MetaWriter.h.


The documentation for this class was generated from the following files: