Lines Class Reference

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

Public Types

enum class  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
 

Member Enumeration Documentation

◆ LineType

enum class LineType
strong
Enumerator
StartBlock 
EndBlock 
Normal 
Empty 

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 )

Member Function Documentation

◆ endBlock() [1/2]

void endBlock ( )

◆ endBlock() [2/2]

void endBlock ( const std::string & line)

◆ endBlockComment()

void endBlockComment ( std::string comment)

◆ enforceEmptyLine()

void enforceEmptyLine ( )

◆ getLastLineType()

Lines::LineType getLastLineType ( )

◆ line() [1/2]

void line ( )

◆ line() [2/2]

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

◆ lineCheckDuplicate()

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

◆ startBlock() [1/2]

void startBlock ( )

◆ startBlock() [2/2]

void startBlock ( const std::string & line)

Member Data Documentation

◆ indent

int indent = 0

◆ lines

std::vector<std::string> lines

◆ name

std::string name

◆ ss

std::stringstream ss

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